NodeDuplicate ()
Duplicate a node in the data base in the given new address.
Usage
NodeDuplicate( path, newAddr )
Parameters
- path (string)
- Data base path of the node.
- newAddr (string)
- Data base path of the duplicated node.
Return Value
None
Errors
The path and newAddr should be valid.
Description
node = item.getPath()
(oldName, newName) = item.duplicate()
if oldName != newName:
oldPath = node + RS + oldName
newPath = node + RS + newName
NodeDuplicate( oldPath, newPath )