Next Property

       

Returns the next navigation node in the navigation sequence. Read-only 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 or With variable not set" error.

Example

This 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