Structcopy() and structduplicate()

Explain how structcopy() and structduplicate() differ from one another

Questions by yoosafabdulla   answers by yoosafabdulla

Showing Answers 1 - 2 of 2 Answers

arasu17

  • Feb 10th, 2011
 

The best example is given in livedocs.
Please have a look at it and let me know if you have any doubt.
Post some challenging question
http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00000635.htm

  Was this answer useful?  Yes

arasu17

  • Feb 10th, 2011
 

Here we go.
There are two types of structure:
1. nested structure
2. Simple structure.

For 1 st ,copied structure will not have the reference pointing towards the original
 so if you change the value in copied structure , it will always be changed to the latest.


for 2nd , copied stucture in vise versa.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions