One more reason to not use Evaluate... in CFMX.

Variables is now a real structure. 

So, instead of:

<cfset x = 1>
<cfset theVar = "x">
<cfoutput> x is #evaluate(theVar)#</cfoutput>

You can do:

<cfset x= 1>
<cfset theVar = "x">
<cfoutput>x is #Variables[x]#</cfoutput>

You can also dump all your local vars:

<cfdump var="#variables#" label="My Local Crap">


=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : [EMAIL PROTECTED]
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Thane Sherrington [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, May 01, 2002 9:46 AM
> To: CF-Talk
> Subject: RE: IsDefined and Form["test"&var] question
> 
> 
> At 09:44 AM 01/05/02 -0400, Raymond Camden wrote:
> >You can either do:
> >
> >isDefined("form.question#questionnumber#")
> >
> >or
> >
> >structKeyExists(form,"question#questionnumber#")
> >
> >I prefer the first method.
> 
> Thanks Raymond.  You are saving me from using evaluate again. 
>  I really 
> appreciate all your help.
> 
> T
> 
> 
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to