Expand method: Node class
Syntax
Expand(ExpandType)
Description
The Expand method gets the next level of nodes or leaves into memory from the selected node. What leaves or nodes get expanded depends on the ExpandType.
Parameters
| Parameter | Description |
|---|---|
|
ExpandType |
Specifies which leaves or nodes get expanded. Values are: |
| Value | Description |
|---|---|
|
0 |
Expand only nodes |
|
1 |
Expand nodes and leaves |
|
2 |
Expand only one level |
Returns
A number; 0 if method is successful.
Example
If (&MYNODE.State = 2 AND &MYNODE.HasChildren);
/* if node is collapsed */
&MYNODE.Expand(2);
End-if;