> ----- Original Message -----
> From: "S. Isaac Dealey" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[email protected]>
> Sent: Monday, May 02, 2005 1:00 PM
> Subject: Re: Dealing with unworkable query column names
>> Ouch... I'm glad I don't have to deal with that schema...
>>
>> But you don't want to use evaluate anyway... plus, unless
>> the table
>> only has one column, this won't work anyway: tblname =
>> Evaluate("q." &
>> q.columnList) -- q.columnlist is a comma delimited list
>> of the column
>> names, so you would be trying to say
>> evaluate("q.first,last,middle,bloodtype") which won't
>> work...
> The query does indeed only return a single column, so
> q.columnlist ==
> ListFirst(q.columnlist). I was just looking for a way to
> reference it
> without spelling it out.
Just covering the bases. :)
>> you want to use array notation:
>>
>> <cfoutput query="q">
>> <cfloop index="colname" list="#q.columnlist#">
>> #q[colname]#
>> </cfloop>
>> </cfoutput>
> Thanks. That worked.
Or in your case #q[q.columnlist]#
Glad to help. :)
s. isaac dealey 954.522.6080
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.fusiontap.com
http://www.sys-con.com/author/?id=4806
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205333
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54