Get Node Level
This system function returns the hierarchical level of a given node.
Parameters
- Parent/Child
-
Input, required. The parent child FC to affect.
- Node ID
-
Output, required. The object to which you want to assign the return value that designates the node ID. The value must be a variable or control with the same data type as the node ID column; a type mismatch will be checked the runtime engine. Set the parameter to <Currently Selected Node>, <Drag Over Node>, <Currently Expanding/Collapsing Node>, or <Currently Deleted Node>.
- Return to
-
Output, required. The object to which you want to assign the return value that designates the node level. Set the parameter to an applicable object from object list.
Returns
This system function returns the hierarchical level of a given node to the object identified by Return to. If this system function fails (for example, the node ID does not exists), then the system function returns a value of –1.