Prev Property

Microsoft FrontPage Visual Basic

Returns a NavigationNode object that represents the previous navigation node in the navigation sequence. Read-only.

expression.Prev

expression    Required. An expression that returns a NavigationNode object.

Example

The following example moves the navigation pointer to the previous node, unless the current node is the first node of the level in the navigation structure.

Private Sub MovePrev()
    Dim theNode as NavigationNode
    Dim thePrevNode as NavigationNode
    On Error Resume Next

    Set theNode = ActiveWeb.HomeNavigationNode.Children(1)
    Set thePrevNode = theNode.Prev

    If Err <> 0 Then
            MsgBox "The current navigation level starts here."
    End If
End Sub