[thelist] ColdFusion: Nested pound signs

Raymond Camden jedimaster at macromedia.com
Tue Nov 13 21:41:23 CST 2001


> 
> ><CFSET Sentence = "The length of the full name is #Len("#FirstName#
> >#LastName#")#">
> 
> Can be written as <cfset sentence = 'The length of the full 
> name is ' & 
> Len(FirstName&' '&LastName)>
> 
> In this case, the single quotes around The length of the full 
> name is tells 

Just to be anal - you don't need to use single quotes. This is fine as
well:

<CFSET Sentence = "The Length of blah is " & Len(...)>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email    : jedimaster at macromedia.com
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 






More information about the thelist mailing list