MoveAsSibByName method: Node class

Syntax

MoveAsSibByName(NodeName)

Description

The MoveAsSibByName 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

NodeName

Specify the name of a node. This parameter takes a string value. NodeName must be a valid node for the existing tree.

Note:

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

Returns

A number; 0 if method is successful.

Example

&MYNODE = &MYTREE.FindNode("20000", ""); 
&MYNODE.MoveAsSibByName("10100");