TreeNode.AOTUtilFileType Method

Retrieves the value of the UtilFileType enumeration type for the TreeNode object. The UtilFileType indicates which kind of file the application object is stored in.

Syntax

public UtilFileType AOTUtilFileType()

Run On

Called

Return Value

Type: UtilFileType Enumeration
The value of the UtilFileType enumeration for the tree node. The possible values are in the following list.
UtilFileType::Application means that the element is stored in the .aod file (form, report, query, table, and so on).
UtilFileType::ApplicationCodeDocumentationmeans that the element is stored in the .add file.
UtilFileType::ApplicationHelp means that the element is stored in the .ahd file.
UtilFileType::KernelHelp means that the element is stored in the .akh file.

Examples

The following example finds a TreeNode object of each UtilFileType, and then prints the path of the UtilFileType to the Infolog.

static void myJob(Args _args) 
{ 
    treeNode tn; 
 
    tn = treeNode::findNode("\\Forms"); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
         "Path: %1 \nUtilFileType: %2", 
         tn.treeNodePath(), 
         tn.AOTUtilFileType())); 
 
    tn = treeNode::findNode("\\System Documentation"); 
    tn = tn.AOTfirstChild(); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
         "Path: %1 \nUtilFileType: %2", 
         tn.treeNodePath(), 
         tn.AOTUtilFileType())); 
 
    tn = treeNode::findNode("\\Application Developer Documentation"); 
    tn = tn.AOTfirstChild(); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
        "Path: %1 \nUtilFileType: %2", 
        tn.treeNodePath(), 
        tn.AOTUtilFileType())); 
 
    tn = treeNode::findNode("\\Application Documentation"); 
    tn = tn.AOTfirstChild(); 
    tn = tn.AOTfirstChild(); 
    info(strfmt( 
        "Path: %1 \nUtilFileType: %2", 
        tn.treeNodePath(), 
        tn.AOTUtilFileType())); 
}

See Also

Reference

TreeNode Class