Johan
I believe you have to do a structNew() then CFLOOP through the original
structure copying each element.
This is easy if you know up front what elements the structure contains.
Otherwise you have to use isStruct() and isArray() on each element to
see if it's a nested structure or array, & if so create a corresponding
new one in the target structure.
Nick
-----Original Message-----
From: Johan Coens [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 10:11 AM
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
Using StrucyCopy you still reference the original structure. So, when using
structCopy of an application or session variable you still have a pointer to
the shared memory
-----Original Message-----
From: Allan Pichler [mailto:[EMAIL PROTECTED]]
Sent: donderdag 21 december 2000 10:55
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
StructCopy(structure)
-----Original Message-----
From: Johan Coens [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 1:54 AM
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
How do you duplicate a structure in CF4.0?
-----Original Message-----
From: Allan Pichler [mailto:[EMAIL PROTECTED]]
Sent: donderdag 21 december 2000 10:40
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
No it's not!
Allan Pichler
Machine Dreams Inc.
-----Original Message-----
From: Johan Coens [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 1:47 AM
To: CF-Talk
Subject: Duplicate supported in CF4.0
Quick question
is the Duplicate function supported in CF4.0?
Best regards,
Johan Coens
=========
Ing. Johan Coens
Certified ColdFusion Developer
<theFactor.e>
Friesestraatweg 215a
P.o. Box 2010 9704 CA Groningen
The Netherlands
Tel: +31 (0)50 57 57 888
Fax: +31 (0)50 57 57 889
<http://www.thefactore.com>
Premium Partner for Allaire Cold Fusion
Multimedia development with Macromedia Director, Authorware, Flash.
"Imagination is more important than knowledge. Knowledge is limited.
Imagination encircles the world."
Albert Einstein
=========
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists