<< or you could try an iif() in the query="" and based on
isdefined("session.cache_query") use the appropriate query variable >>

Hey, not a bad idea.  Thanks... this is probably the best approach.

Terry


> You could rewrite the loop twice, once for each variable name (probably
>not best), or you could try an iif() in the query="" and based on
>isdefined("session.cache_query") use the appropriate query variable.
>
>~Brad
>
>-----Original Message-----
>From: Terry Ford [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, January 05, 2006 8:35 AM
>To: CF-Talk
>Subject: Re: Avoiding copying by value
>
>>You can use duplicate, but why not reference session.cache_query?
>>
>>bob
>
>To repeat:
>
>"I know that I could do <Cfloop query="session.cache_query">, but then
>the Google "q" query wouldn't work.  I really want to be able to
>reference either the cached query or the runtime query by the same
>variable name, "q". "

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228473
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to