> I want to be able to save a query to a dynamically named Application
> variable and then refer to it. I can't figure out the correct
> notation to
> make it work.
> <cfset x = 3>
> <cfquery name="Application.ShowEvents#x#" datasource="calendar">
> SELECT Name, Date
> FROM EVENTS
> </cfquery>
>
> This is the part I can't figure out.
>
> <cfoutput>#Application.ShowEvents????.Date[1]#</cfoutput>
>
> How do I notate it so I can refer to the dynamic Application variable?

Use the Evaluate function:

<cfoutput>#Evaluate("Application.ShowEvents#URL.x#.Date[1]")#</cfoutput>


Ron Allen Hornbaker
President/CTO
Humankind Systems, Inc.
http://humankindsystems.com
mailto:[EMAIL PROTECTED]



------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to