Folder Property

Microsoft FrontPage Visual Basic

Folder Property

Returns a WebFolder object that represents the folder associated with the list. The Web folder hierarchy provides the link to folders and files on a Web server directory. The navigation structure provides the underlying structure for the Web objects within individual Microsoft FrontPage Web sites.

expression.Folder

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example displays the name of the Web folder associated with the current list. If the current Web site contains no lists, a message is displayed to the user.

    Sub ReturnFolder()
'Returns the folder associated with the list

    Dim objApp As FrontPage.Application
    Dim objFolder As WebFolder

    Set objApp = FrontPage.Application

    If Not objApp.ActiveWeb.Lists Is Nothing Then
        Set objFolder = objApp.ActiveWeb.Lists(0).Folder
        MsgBox "The name of the associated Web folder is: " & _
                objFolder.Name & "."
    Else
        MsgBox "The Active Web site contains no lists."
    End If

End Sub