MoveAsSib method: Node class

Syntax

MoveAsSib(Node)

Description

The MoveAsSib method moves the node executing the method to a new place in the tree. The current node becomes the next sibling node under the specified node. All child nodes and details are also moved with the node.

Parameters

Parameter Description

Node

Specify a node object. This parameter value must be an object, not a string or a name.

Note:

To specify a node name, not a node object, use the MoveAsSibByName method.

Returns

A number; 0 if method is successful.

Example

&MYNODE = &MYTREE.FindNode("20000", ""); 
&MYNODE2 = &MYTREE.FindNode("20100", ""); 
&MYNODE.MoveAsSib(&MYNODE2);