Next Property
Returns a NavigationNode object that represents the next navigation node in the navigation sequence. Read-only Object.
expression.Next
*expression * Required. An expression that returns a NavigationNode object.
Remarks
Although the Next property is a member of the NavigationNode class, this property navigates within the Children collection of the specified NavigationNode object.
Note The Children collection does not wrap, so that code such as Children(Children.Count – 1).Next
returns an "Object variable or With block variable not set" error.
Example
The following example moves the navigation pointer to the next node, unless the current node is the last node of the level in the navigation structure.
Private Sub MoveNext()
Dim theNode As NavigationNode
Dim theNextNode As NavigationNode
On Error Resume Next
Set theNode = ActiveWeb.HomeNavigationNode.Children(1)
Set theNextNode = theNode.Next
If Err <> 0 then
MsgBox "End of the current navigation row"
End If
End Sub
Applies to | NavigationNode Object