RE: Duplicate and StructCopy

2001-09-14 Thread Kola Oyedeji
-8429-7300 -Original Message- From: Tyson Vanek [mailto:[EMAIL PROTECTED]] Sent: 13 September 2001 23:35 To: CF-Talk Subject: RE: Duplicate and StructCopy Thanks for that, Ray. :) Actually, I only threw that in because I run CF5, but figured many people on the list might run CF4

RE: Duplicate and StructCopy

2001-09-14 Thread Raymond Camden
: Tyson Vanek [mailto:[EMAIL PROTECTED]] Sent: 13 September 2001 23:35 To: CF-Talk Subject: RE: Duplicate and StructCopy Thanks for that, Ray. :) Actually, I only threw that in because I run CF5, but figured many people on the list might run CF4. Good catch, nonetheless. -Tyson

RE: Duplicate and StructCopy

2001-09-14 Thread Kola Oyedeji
Cheers Kola Oyedeji Web developer Macromedia Certified Advanced ColdFusion 5 Developer http://www.Alexandermark.com (+44)020-8429-7300 -Original Message- From: Raymond Camden [mailto:[EMAIL PROTECTED]] Sent: 14 September 2001 13:12 To: CF-Talk Subject: RE: Duplicate and StructCopy

RE: Duplicate and StructCopy

2001-09-13 Thread Chris Norloff
Duplicate() is used with CFSET to copy a complex variable (query, array or structure). If you don't use Duplicate() then the copy is not a real copy, but a pointer back to the original - this can cause problems with shared-scope variables (application, session, server). Duplicate() is

RE: Duplicate and StructCopy

2001-09-13 Thread Raymond Camden
] Yahoo IM : morpheus My ally is the Force, and a powerful ally it is. - Yoda -Original Message- From: Chris Norloff [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 8:26 AM To: CF-Talk Subject: RE: Duplicate and StructCopy Duplicate() is used with CFSET to copy

RE: Duplicate and StructCopy

2001-09-13 Thread Dave Watts
Duplicate() is used with CFSET to copy a complex variable (query, array or structure). If you don't use Duplicate() then the copy is not a real copy, but a pointer back to the original - this can cause problems with shared-scope variables (application, session, server). Arrays aren't

RE: Duplicate and StructCopy

2001-09-13 Thread Tyson Vanek
are uncertain if your variable set need to use the duplicate() function. Better safe than sorry. :) Hope this helps, Tyson -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 9:37 AM To: CF-Talk Subject: RE: Duplicate and StructCopy

RE: Duplicate and StructCopy

2001-09-13 Thread Raymond Camden
19: cflock scope=server type=readonly timeout=30 20: cfset intColdFusionVersion = listFirst(server.coldfusion.productversion) 21: /cflock 22: 23: cfif intColdFusionVersion eq 5 24: cfdump var=#arrTest1# 25: hr 26: cfdump var=#arrTest2# 27:

RE: Duplicate and StructCopy

2001-09-13 Thread Tyson Vanek
Subject: RE: Duplicate and StructCopy 19: cflock scope=server type=readonly timeout=30 20: cfset intColdFusionVersion = listFirst(server.coldfusion.productversion) 21: /cflock 22: 23: cfif intColdFusionVersion eq 5 24: cfdump var=#arrTest1# 25: hr 26

RE: Duplicate and StructCopy

2001-09-11 Thread Mark Stewart
That makes a lot more sense than the jumble I wrote. Thanks for the clarification Dave and Craig. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 12:51 AM To: CF-Talk Subject: RE: Duplicate and StructCopy

RE: Duplicate and StructCopy

2001-09-10 Thread Mark Stewart
Someone correct me if I'm wrong but I believe the best way to copy is to use the duplicate function. I believe the difference is there's sometimes a problem when you have nested structures and those nested structures don't get copied or may be corrupted when you use structcopy(). I'm not sure if

RE: Duplicate and StructCopy

2001-09-10 Thread Dave Watts
Are these two the same? If not, what is the difference between them? StructCopy was introduced to the language before Duplicate. I suspect that there's very little need for StructCopy anymore, really. StructCopy creates a separate copy of a structure (passing it by value instead of by

RE: Duplicate and StructCopy

2001-09-10 Thread craig
Original Message From: [EMAIL PROTECTED] To: [EMAIL PROTECTED], Subject: RE: Duplicate and StructCopy Date: Mon, 10 Sep 2001 16:09:16 -0500 Are these two the same? If not, what is the difference between them? Brian Yager President - North AL Cold Fusion Users Group Sr. Systems