On Thursday 25 October 2001 12:24 pm, you wrote:
> > > #Evaluate("Session.Variable_" & ndx)#
> >
> > My bad, for some reason this worked for me:
> >
> > <cfset this="one">
> > <cfset that="two">
> > <cfset onetwo="yay">
> > <cfoutput>#evaluate(this&that)#</cfoutput>
>
> There's a reason for that. The argument of the Evaluate function is a
> string, and it's, well, evaluated. So, if you put in a variable, the value
> of the variable will be used as a string, and then it'll be evaluated - CF
> will look for a variable with the name specified by the string. The
> IsDefined function works the same way. That's why, if you're looking for,
> say, a form field, you have to do this:
>
> <cfif IsDefined("Form.myfield")>
>
> If you left off the quotes, and the field did in fact exist, CF would get
> the value within the field and then look for a variable by that name.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496

Aha - that's what I was looking for...

Thanks Dave and Suzanne!

Geo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to