InsertChildRecord method: Node class
Syntax
InsertChildRecord(NodeName)
Description
The InsertChildRecord method inserts a new record (as specified by NodeName) as a node under the parent node executing this method. This method works only on trees that are Query Access Trees.
A node object associated with the new node is returned, otherwise this method returns False or Null.
Parameters
| Parameter | Description |
|---|---|
|
NodeName |
Specify an existing record name. This parameter takes a string value. This record must not already be a node under the parent node (that is, a parent node can’t have the same record as a child node more than once.) |
Returns
A reference to the new node. 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
&NEWNODE = &MYNODE.InsertChildRecord("PERSONAL_DATA");
If None(&NEWNODE) Then
/* Do error processing */
End-if;