FileSaveForm Property

Microsoft FrontPage Visual Basic

FileSaveForm Property

Returns or sets a String that represents the relative URL of the form page that is displayed when files are saved. Read/write.

expression.FileSaveForm

expression    Required. An expression that returns a DocumentLibrary object.

Example

The following example creates a new document library called "NewLibrary" and displays the relative URL of the page associated with saving a file to the library.

    Sub NewLibrary()
'Adds a new list to the current web

    Dim objApp As FrontPage.Application
    Dim objLists As Lists
    Dim objLibrary As DocumentLibrary

    Set objApp = FrontPage.Application
    Set objLists = objApp.ActiveWeb.Lists
    'Add new list
    objLists.Add Name:="NewLibrary", _
                 ListType:=fpListTypeDocumentLibrary, _
                 Description:="List of Shared files"
    Set objLibrary = objLists.Item("NewLibrary")

    'Display message to user
    MsgBox "A new list was added to the Lists collection." & _
           "The URL of the page associated with the Save dialog is " & _
            objLibrary.FileSaveForm & "."

End Sub