Unbranch method: Node class

Syntax

Unbranch()

Description

The Unbranch method is the opposite of the Branch method: that is, it unbranches the node executing the method if it is branched. All of the child node and leaves of the node become part of the current open tree and accessible in that tree. You can’t unbranch the Root Node in a branched tree.

If the node executing the method isn’t branched, you receive a runtime error. Use the IsBranched property to make sure a node is branched.

Returns

A number; 0 if method is successful.

Example

&MYNODE = &MYTREE.FindNode("10900", ""); 
&MYNODE.Unbranch();