Clones an existing object to another position on the panel
- The object to copy
- The parent to link the cloned object to
- A position to move the object to
A handle to the newly created component, 0 if the call failed.
This creates an identical copy of the object which may be inserted at any point in the component tree.
The root object may not be cloned, but other to that any object (even a definition) may be cloned.
Calling in a calculation
- Declare a variable 'result' of type HANDLE
- Add to a calculation icon:
result = ::Component.Clone(source, destparent, newposition)
No additional examples