StartTraverse Method
The StartTraverse method prepares the tree to be traversed with the NextNode method. It returns TRUE if successful.
This method has the following syntax:
rc = Tree.StartTraverse(node = Treenode, traverseorder = integer)
This method has the following parameters:
node
(Required) Specifies the node to start traversing from. If the node is set to NULL or is unspecified, then all nodes of the tree are to be traversed.
traverseorder
(Required) Specifies the order of traversing. Valid values are:
TO_PREORDER
Specifes that, with the preorder traversal, the specified node and its subtrees are visited first, then each of its following siblings and their subtrees are visited
TO_LEVELORDER
Specifes that, with the level order traversal, the nodes are visited in the order in which they appear, from left to right and from top to bottom
Default: TO_PREORDER
Descriptions of system constant values and their numeric equivalents are listed in
Traverse Order (see
Traverse Order).
If the node parameter is NULL or not specified, the root node is assumed.