> > #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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com