> Again with a PHP-related question (trying to convert some PHP
> code to CF). This one has to do with CFCASE. In PHP you can
> define a constant using define("constantname","constantvalue").
> From there on the variable is indeed treated as a constant
> (like true or false). I have a switch/case in PHP I want
> converted to CF but I cannot find a way of creating a
> "constant-constant" and end up having the old "This expression
> must have a constant value." error. I know I can use CFIF but,
> well, just wanted to know if this can be done with CFSWITCH....
> PHP can do it! : )
No, unfortunately CFML does not provide constants.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Get the mailserver that powers this list at
http://www.coolfusion.com