DeleteByName method: Node class
Syntax
DeleteByName(NodeName)
Description
The DeleteByName method deletes the specified node from the database. The NodeName parameter takes a string value. The node specified by NodeName does not have to match the node executing the method. That is, if &MYNODE is associated with node 100200, you can specify a different node with the DeleteByName method. For example:
&MYNODE = &MYTREE.FindNode("100200", "");
/* some processing */
&MYNODE.DeleteByName("100300");
The node name specified by NodeName must be a valid node in the existing open tree object. If NodeName doesn’t exist, you receive a runtime error.
Returns
A number; 0 if method is successful.