you can set fields into the form (keys into the form struct/scope),
but not create/alter the form scope directly.

in your code example, you'd loop over the tony struct and set each
form field with that.

does seem like a PITA... duplicate() would be a nicer (easier) way :\

On 9/24/07, Tony <[EMAIL PROTECTED]> wrote:
> can someone explain why the dump of the
> form scope, doesnt show, but the dump of
> the "chuck" scope does?
>
> i assume that its because the name "form" is
> protected and can be psuedo used...?
>
> help. thanks. tony
>
> <cfset session.tony = structNew() />
> <cfset session.tony.firstname = "Tony" />
> <cfset session.tony.lastName = "Weeg">
> <cfset form =  duplicate(session.tony) />
> <cfset chuck =  duplicate(session.tony) />
>
> <cfdump var="#session#">
> <cfdump var="#session.tony#">
> <cfdump var="#form#" label = "Form should be here">
> <cfdump var="#chuck#" label = "Chuck was here">
>
> --
> 'Never have anything in your life that you can't walk out on in thirty
> seconds flat, if you spot the heat coming around the corner'
>
> robert deniro - heat (1995)
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289344
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to