Not sure what you're suggesting here, you've only got one square bracket. 
But I've tried as many combinations as I can think of with wrapping the 
brackets around the column name, the query and column name, with dot, 
without dot etc and I can't make it work. Evaluate?

----- Original Message ----- 
From: "srinivas ganta" <[EMAIL PROTECTED]>
To: "CF-Talk" <[email protected]>
Sent: Monday, August 28, 2006 12:59 PM
Subject: Re: valuelist and variable column name


Hi Hughes

Try this

<cfset myList = valueList(myQuery.varColumnName])>

Srinivas

On 8/28/06, Gareth Hughes <[EMAIL PROTECTED]> wrote:
>
> I'm struggling to get ValueList to work on a column name which is a
> variable:
>
> <cfset varColumnName = "actualColumnName">
>
> <cfdump var="myQuery[varColumnName][1]"> <!--- this line works --->
>
> <cfset myList = valueList(myQuery[varColumnName])> <!--- this line doesn't
> work --->
>
> I thought the square bracket notation should work here but apparently not.
> Does anyone know the best way to do this?
>
> Thanks
>
>
>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251218
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to