- ⌂ Content
- Directives
#CLONE
Return a shallow-clone of an object or array. That is, return a reference to a duplicate the object or array, where it's properties or elements are references to the same values as the original.
Prototype
#CLONE($value)Parameters
- value - Object (cObject or dynamically created object) or array to clone.
Return
Returns a shallow-clone of the object or array.
Example
#**
* Create a Contact in memory, assign a first and last name to it,
* and then output the Contact's summary.
*#
#ASSIGN($ContactClone,#CLONE($OriginalContact))
webCOMAND Docs