TreeNode.AOTchildNodeCount Method
Counts the number of child nodes that a given tree node has.
Syntax
public int AOTchildNodeCount()
Run On
Called
Return Value
Type: int
An integer that indicates the number of child nodes for the tree node.
Examples
The following example prints the number of child nodes that appear under the Menu Items node in the Application Object Tree (AOT).
#AOT
static void myJobAOTchildNodeCount(Args _args)
{
treeNode treeNode = TreeNode::findNode(#MenuItemsPath);
print "Number of nodes below Menu Items: ", treeNode.AOTchildNodeCount();
pause;
}