Solution is fine but my question is why do all other
structure operations work while StructCopy does not...
So I could well write a custom tag that would do what
StructCopy does using StuctUpdate or StructInsert as
the case may be.
Kedar
--- "Olive, Christopher M Mr NMR"
<[EMAIL PROTECTED]> wrote:
> why not copy the form structure to some local
> struct, modify that, and send
> THAT to the custom tag?
>
> Chris Olive,
> DOEHRS Website Administrator
>
> -----Original Message-----
> From: Planet CF [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 04, 2000 10:54 AM
> To: [EMAIL PROTECTED]
> Subject: The FORM structure
>
>
> Hi,
> FORM is a structure in Cold Fusion. All structure
> operations can be performed in the FORM structure,
> except for StructCopy.
>
> The following code:
>
> <cfset LocalStruct = StructNew()>
> <cfset LocalStruct.Name = "Joe">
> <cfset LocalStruct.Company = "Allaire">
> <CFSET FORM = StructCopy(LocalStruct)>
>
> does not work....
>
> The exact error message is:
> "Cannot assign result to symbol FORM"
>
> Why does it behave like this? One application of
> changing the FORM structure would be to use it
> directly in CFUPDATE, CFINSERT after modifying it.
> Though there are other solutions to this, I would
> prefer to change the FORM structure and then send it
> to mycustom tag.
>
> Thanks and regards,
> Kedar Desai
> Differential Technologies
> Fairfax, VA
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Kick off your party with Yahoo! Invites.
> http://invites.yahoo.com/
>
----------------------------------------------------------------------------
> --
> Archives:
>
http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
>
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
> or
> send a message to [EMAIL PROTECTED]
> with 'unsubscribe' in
> the body.
>
------------------------------------------------------------------------------
> Archives:
>
http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
>
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
> or send a message to
> [EMAIL PROTECTED] with 'unsubscribe'
> in the body.
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.