On MX 7 you will need to use the evaluate function.

I am not 100% sure if this will work on CF MX 7

<cfset col1 = qSheetData['column'][i] />

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543



On Tue, Oct 4, 2011 at 6:33 AM, Mo Lay <[email protected]> wrote:

>
> Hi guys ,
>
> Iam 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#/>
>
> <cflop query="qSheetData">
>
> <cfset strMonth = #col1#/>
>
>
> </cfloop>
>
>
> this gives me strMonth  as string "qSheetData.column7" and not as a value.
>
> if i replace by <cfset strMonth = qSheetData.column7/> , this will
> work..and give me my query data
>
>
> Can any body tells me how should i get the data using the 1st statment ?
>
> thanks]
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5646
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to