RE: [ACFUG Discuss] dynamic structs/variable

2007-03-05 Thread Gurevich, Gerry \(NIH/NIEHS\) [C]
Well I would want to ask and argue not to do this...but I'll bite my tongue. Why not create a superstructure to hold this. Then you could do something like: cfset superstruct=structnew() cfset structVarName = myStruct / cfset superstruct[structVarName] = StructNew()/ cfset keyVariable =

Re: [ACFUG Discuss] dynamic structs/variable

2007-03-05 Thread Steven Ross
thanks! this worked: cfset variables.structVarName = myStruct / cfset #structVarName# = StructNew()/ cfset keyVariable = steven.ross / cfset theValue = a name / cfdump var=#Evaluate(structVarName)# cfset variables[structVarName][keyVariable] = theValue / cfdump

Re: [ACFUG Discuss] dynamic structs/variable

2007-03-05 Thread Jeremy Allen
You can also use the SetVariable function if you wanted to avoid the syntax magic of cfset #var# = some value. Jeremy On 3/5/07, Steven Ross [EMAIL PROTECTED] wrote: Ok I'll let you in on it... heh. Ok so I have a configuration xml file and I want to be able to dynamically create structs and