I've always found pound signs make it hard for me to read stuff so I find
myself organizing my code in such a way as to avoid them where reasonable.

Nice solution Rebecca.

- Calvin

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 5:28 PM
To: CF-Talk
Subject: RE: Web Based Mail Merge? (not email!)

> Then I just loop over the query with the data for the 
> variables and build a variable with the letter text, like this:
> 
> <cfset ResidentLtrs = ResidentLtrs & #topmargin# & ...

I think it's worth pointing out that if you're going to concatenate strings,
you don't need to wrap pound signs around your CF expressions. If you want
to embed those expressions within existing strings, then you need the pound
signs.

<cfset mystr = var1 & var2>
<cfset mystr = "#var1##var2#">

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!




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201442
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to