>> I am not understanding the variables part? >> >> Do I create a local var? Can you give me the exact syntax? > >Every variable scope in CF can be treated as a structure. So, if you do this: > ><cfset myname = "Bob"> > >it's equivalent to doing this: > ><cfset variables.myname = "Bob"> > >and this: > ><cfset variables["myname"] = "Bob"> > >The last example shows a literal string being used to create the >variable name. You can build literal strings from CF expressions: > ><cfset i = "1"> ><cfset variables["myname" & i] = "Bob"> > >That's what Bobby did in his example. >
Thanks. Here is how I am dumping the dynamic queries: <cfdump var="#variables["course" & i]#" label="#i#"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358566 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm