Err, I thought I made that clear though - you would need to set each var from the old ob in the new ob. See my example where I copy the name value. It doesn't matter if you use this scoped var or private scoped variables, you would need to copy them all. If that wasn't clear, sorry.
======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paul Johnston > Sent: Tuesday, July 29, 2003 5:00 AM > To: [EMAIL PROTECTED] > Subject: RE: [CFCDev] Object copy > > > Yes but what you've described doesn't copy the object, it > just returns a new object... > > To copy the object, surely you have to take all of the > variables in the unnamed scope and set those variables in the > new object and then return it. > ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
