I think this is one of those instances where it just won't work.  I ran
across this issue a year or so back.  I'm pretty sure it was with the
valueList() function.

M!ke

-----Original Message-----
From: Gareth Hughes [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 7:13 AM
To: CF-Talk
Subject: Re: valuelist and variable column name

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" <cf-talk@houseoffusion.com>
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:251220
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to