Parameter | Description |
---|---|
hoNewNode | Object Handle of the new node |
hoNodeToReplace | Object Handle of the node to be replaced |
Returns the object handle of the node that was replaced, zero if failure
Function ReplaceNode Handle hoNewNode Handle hoNodeToReplace Returns Handle
Call: | Get ReplaceNode hoNewNode hoNodeToReplace to HandleVariable |
ReplaceNode replaces a node.
An object handle is returned, and the object must be disposed of by sending the Destroy message to it. The returned value is the object ID of the node that got replaced.
Get ReplaceNode of hoElement hoNewChildElement hoOldChildElement to hoOldNode
Note: | This function returns an XML node object and, like all XML node objects, it is the responsibility of the developer to destroy them when they are no longer needed. The reason IDs are returned and not automatically destroyed is that it gives you the ability to do something else with the node. You could, for example, take a replaced node and add it somewhere else. |