MoveAsSib method: Leaf class
Syntax
MoveAsSib(Leaf)
Description
The MoveAsSib method moves the leaf executing the method to a new place in the tree. The current leaf becomes the next sibling leaf under the specified leaf object, although there is no explicit ordering of leaves: leaves take the order of the alphanumeric database sort on their range fields.
Parameters
| Parameter | Description |
|---|---|
|
Leaf |
Specify a leaf object. This parameter value must be an object, not a string or a name. |
Note:
To specify a range, not a leaf object, use the MoveAsSibByRange method.
Returns
A number; 0 if the move is successful.
Example
&MYLEAF = &MYTREE.FindLeaf("8000", "8000");
&MYLEAF2 = &MYTREE.FindLeaf("9000", "9000");
&RET_VALUE = &MYLEAF.MoveAsSib(&MYLEAF2);
Related Topics