MoveAsSibByRange method: Leaf class
Syntax
MoveAsSibByRange(RangeFrom, RangeTo)
Description
The MoveAsSibByRange 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.
Parameters
| Parameter | Description |
|---|---|
|
RangeFrom |
Specify the starting range of the leaf that you want as the parent of the leaf executing the method. This parameter takes a string value. |
|
RangeTo |
Specify the ending range of the leaf that you want as the parent of the leaf executing the method. This parameter takes a string value. |
Note:
To specify a leaf object, not a range, use the MoveAsSib method.
Returns
A number; 0 if the move is successful.
Example
&MYLEAF = &MYTREE.FindLeaf("8000", "8000");
&RET_VALUE = &MYLEAF.MoveAsSibByRange("9000", "9000");
Related Topics