> I have been using CF (pretty sporadically) for anout 5 years 
> now and I am embarrassed to admit to never quite getting my 
> head around when to use the hash signs.

If you're using a ColdFusion expression within a string, and you want to
output the value of the expression, use hashes. Otherwise, don't.

<cfset thisvar = "a string value">
<cfset thatvar = thisvar>
<cfset thisstring = "some literal string #thisvar# some more literal
string">
Or
<cfset thisstring = "some literal string " & thisvar & " some more literal
string">

<cfoutput>This is also a string, of course, so if I want to output an
expression, I'll need hashes: #thisvar#</cfoutput>

The one exception I can think of to this is the CFDUMP tag.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281155
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to