cffaq.com


Hosted and maintained by Ben Forta. Designed by Trilemetry.
Language:
    © 2002-2007 Ben Forta. All Rights Reserved  
<Home> <FAQ> <Question> <About>

Question

When I use # in colors (for example, #FF00FF) ColdFusion throws an error. How can I correct this?
The # character has a special meaning to ColdFusion, it is used to delimit a variable or an expression. If ColdFusion encounters a # character it expects to find a matching one at the end of the variable or expression. To use a # character as a # character you must escape it using double # characters. So the example in the question would need to be ##FF00FF.

Comments


Add Your Comments

Your Name:
Your E-Mail:
Comment:
Verification: Copy the text on the left:

<submit question>