Maybe because I have been focusing in the wrong direction on this, I have tried some variations of what you just suggested and had no luck with them yesterday. I am gussing it should be this(you left off the qryGetInfo.FormFieldName):
<CFSET Ses.Profile["frm#qryGetInfo.FormNumber#"].qryGetInfo.FormFieldName.Value = qryGetInfo.FormFieldValue> Which errors out saying that: The member "QRYGETINFO.FORMFIELDNAME" in dimension 1 of object "Ses.Profile" cannot be found. Please, modify the member name. Snipe - <CF_BotMaster Network="EFNet" Channel="ColdFusion"> On Thu, 1 Nov 2001, Raymond Camden wrote: > 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

