InsertChildLeaf method: Node class
Syntax
InsertChildLeaf(RangeFrom, RangeTo)
Description
The InsertChildLeaf method inserts a new leaf (as specified by the range parameters) under the node object executing the method.
A leaf object associated with the new leaf is returned.
The new leaf is inserted as the child of the current node, although there is no explicit ordering of leaves: leaves take the order of the alphanumeric database sort on their range fields.
Note:
You must specify a range with this method. To insert a dynamic range leaf (that is, one with no range) use the InsertDynChildLeaf method.
Parameters
| Parameter | Description |
|---|---|
|
RangeFrom |
Specify the starting range of the new leaf. This parameter takes a string value. |
|
RangeTo |
Specify the ending range of the new leaf. This parameter takes a string value. |
Returns
A leaf object associated with the new leaf. If this method fails, it returns either False or a Null object reference, depending upon the type of error encountered. The best way to test whether the object was inserted is to test the result using either the All or None functions.
Example
&NEWLEAF = &MYLNODE.InsertChildLeaf("10090", "10100");
If None(&NEWLEAF) Then
/* Error Processing */
End-If;