On Thu, 11 Nov 2004 12:32:12 -0600, Eric Hoffman <[EMAIL PROTECTED]> wrote: > What is the issue with this, and if this is bad, any suggestions? Created a > structure called session.bigquery so it would be in session for use > throughout a few pages.... > > after a form submit, doing this: > > <cfscript> > > StructInsert(session.bigquery, "state", form.state); > > </cfscript> > > which yields the impertinent "You have attempted to dereference a scalar > variable of type class java.lang.String as a structure with members." >
When you created the session.bigquery, did you initialize it using structNew()? Otherwise it is indeed just a string. <cfset session.bigquery = structNew() /> <cfset structInsert(session.bigquery, "state", form.state) /> That should work. Further, you could simple do this instead of the structInsert() line: <cfset session.bigquery["state"] = form.state /> Regards, Dave. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183976 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

