Gets the original definition of the component, returns Current if no original copy
- The component to find the definition of
Returns the original definition of the component, returns Current if no original copy
When a compiled component is loaded into Flowcode it is stored as a definition and a copy made, which is the actual component that is shown by the system. The original definition copy is used to create new instances of the loaded component.
This call retrieves a handle to that definition. It may not be deleted or re-linked but otherwise can be treated as any other component and its properties may be read or set.
Note that modifying the contents of this component or its children will affect subsequent copies added to the system, as they will be cloned from this template.
Calling in a calculation
- Declare a variable 'result' of type HANDLE
- Add to a calculation icon:
result = ::Component.GetOriginal(current)
No additional examples