This should work:

#Request.thisQuery["Name"]#

-Ryan
-----Original Message-----
From: Mike Alberts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 3:51 PM
To: CF-Talk
Subject: Using Evaluate


Hello All,

I've read many of you discouraging the use of the 'Evaluate' function, for 
performance reasons. So I ask ...

Say I have code like this (within a cfoutput):

#Evaluate(Request.ThisQuery & ".Name")#, where Request.ThisQuery is the name 
of a query that I set and ".Name" refers to a column in the table that I am 
querying. Obviously this returns the value of the column for that particular 
record.

1. Is there another way to code this to not use Evaluate?

2. If there ISN'T another way, would I be better off from a performance 
standpoint to run the Evaluate function once and set a variable with the 
value that it returns and just call that variable, instead of using Evaluate 
multiple times in the page (hope that made sense)?

Thanks for any help,

Mike Alberts



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to