Share via


xInfo.rootNode Method

Retrieves the root of the application object tree.

Syntax

public TreeNode rootNode()

Run On

Called

Return Value

Type: TreeNode Class
The root of the application object tree.

Examples

The following example prints out all the names of the methods in the AddressSelectForm class. The rootnode method is used to set the treenode object to the AOT root before selecting a child node.

{ 
    Treenode treenode; 
    TreenodeIterator it; 
 
    treenode = infolog.rootNode(); 
    treenode = treenode.AOTfindChild("Classes"); 
    treenode = treenode.AOTfindChild("AddressSelectForm"); 
    it = treenode.AOTiterator(); 
    while (treenode) 
    { 
       print treenode.treeNodeName(); 
       treenode = it.next(); 
    } 
    pause; 
}

See Also

xInfo Class

TreeNode Class