TreeNode.AOTedit Method
Opens the appropriate editor for this node.
Syntax
public void AOTedit([int Line, int Column])
Run On
Called
Parameters
- Line
Type: int
The line of the cursor position; optional.
- Column
Type: int
The column of the cursor position; optional.
Remarks
If the node is a method, the code editor will open. If the node is a documentation object, the Help editor will open.
Examples
The following code example opens the X++ editor, shows the class declaration of the class Tax, and positions the pointer at line 6, column 8.
#AOT
static void myJobAOTEdit(Args _args)
{
treeNode treeNode;
treeNode = TreeNode::findNode(#ClassesPath + '\\' + classStr(Tax)+ '\\ClassDeclaration');
if (treeNode)
{
treeNode.AOTedit(6,8);
}
else
{
print "Could not find treeNode";
}
pause;
}