Duplicate (variable_name) 


Returns a clone, also known as a deep copy, of a variable. There is no reference to the original variable. This function does not duplicate COM, CORBA, or Java object structures.


 <cfset exampleStructure = StructNew()>  <cfset exampleStructure.nested  = StructNew()>  <cfset exampleStructure.nested.item = "test">  <cfset exampleDup = Duplicate(exampleStructure)>  <cfoutput>  The duplicate contains the value: # exampleDup.nested.item#  </cfoutput>  

Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net