Why not just do:

<CFSET X[Foo] = Whatever> ?

Or, in your case, 

<CFSET Ses.Profile["frm#qryGetInfo.FormNumber#"].Value = Whatever>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Aaron Rouse [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, November 01, 2001 9:20 AM
> To: CF-Talk
> Subject: Structures and SetVariable() function
> 
> 
> I am trying to set some values to a structure that I have 
> already created
> on my page, but set them based upon some data I pull from my
> database.  When I try the following inside a loop:
> 
> <cfset tmp =
> SetVariable("Ses.Profile[""frm#qryGetInfo.FormNumber#""].#qryG
etInfo.FormFieldName#.Value",
> qryGetInfo.FormFieldValue)>
> 
> I get this error:
> 
> Parameter 1 of function SetVariable which is now
> "Ses.Profile["frm3"].CRANEUSED.Value" must be a syntactically valid
> variable name
> 
> When I use this, I get not errors however when I do a cfobject on my
> structure I get Crane.Vale on the same level, instead of 
> Crane and then
> under than Value.
> 
> <cfset tmp =
> SetVariable("Ses.Profile.frm#qryGetInfo.FormNumber#.#qryGetInf
> o.FormFieldName#.Value",
> qryGetInfo.FormFieldValue)>
> 
> Snipe - <CF_BotMaster Network="EFNet" Channel="ColdFusion">
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to