Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: dynamically named variables
10-04-2011, 12:17 AM #1
- Join Date
- Jun 2011
- Thanked 0 Times in 0 Posts
dynamically named variables
Hi guys ,
I am trying to make the following statment more generic but it gives me "String values instead the real value" my code is below :
<cfset i = 7/>
<cfset col1 = "qSheetData." & "column" & #i#/>
<cfset strMonth = #col1#/>
this gives me strMonth as string "qSheetData.column7" and not as a value. if i replace by <cfset strMonth = qSheetData.column7/> , t
his will work..and give me my query data
Can any body tells me how should i get the data using the 1st statment ?