[thelist] evaluate Cold Fusion variable with hyphen

Joshua Olson joshua at waetech.com
Thu Sep 23 14:07:10 CDT 2004

> -----Original Message-----
> From: Chris Murtland
> Sent: Thursday, September 23, 2004 2:55 PM
> This works fine on all numbers... except ones that have a hyphen in them.
>    Evaluate("form.status#myquery.mynumber#")
> Thanks in advance for any ideas,


Use the bracket notation with forms...

form["status" & myquery.mynumber]

As a rule of thumb, avoid the use of evaluate.  It's generally not needed.

Joshua Olson
Web Application Engineer
WAE Tech Inc.

More information about the thelist mailing list