Difference between revisions of "API Component.Clone"

From Flowcode Help
Jump to navigationJump to search
(XML import API changes)
Line 27: Line 27:
  
 
==Detailed description==
 
==Detailed description==
''<span style="color:red;">No additional information</span>''
+
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 [[API Component.GetOriginal|definition]]) may be cloned.
  
  

Revision as of 09:37, 7 June 2013

<sidebar>API contents</sidebar> Clones an existing object to another position on the panel

Class hierarchy

Component

Clone

Parameters

HANDLE Source

The object to copy

HANDLE DestParent

The parent to link the cloned object to

HANDLE NewPosition

A position to move the object to


Return value

HANDLE

No additional information


Detailed description

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.


Examples

Calling in a calculation

  • Declare a variable 'result' of type HANDLE
  • Add to a calculation icon:
    result = ::Component.Clone(source, destparent, newposition)

No additional information