Another hard working developer falls victim to the Friday afternoon brain
farts. :)

I forgot the "ALL" scope parameter. 

Thanks Sam & Joeseph! :)

EC

-----Original Message-----
From: Joseph DeVore [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 3:00 PM
To: CF-Talk
Subject: RE: asc() to identify line break characters


<cfset crlf=chr(13) & chr(10)>

#replace(string,crlf,'<br>','all')#


HTH,

Joseph DeVore
VeloxWeb Technologies


-----Original Message-----
From: Carlisle, Eric [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 11:46 AM
To: CF-Talk
Subject: asc() to identify line break characters


I have a bunch of articles stored in a DB that need to be presented on the
web.

I'm trying to replace line breaks with and html line break.

I've tried #replace(string,chr(10),'<br>')# and
#replace(string,chr(13),'<br>')#   .

The strings appear with hard breaks instead of <br>.  Are there any other
characters that can be used for a line break?
I cut and paste them into Studio, do a #asc()# on them, and they read as
"10".  Yet when I try to replace 10, nothing happens.

HELP :)

        Eric Carlisle
        Web Site Developer
        Progress Energy IT Systems Delivery
        E-mail: [EMAIL PROTECTED]
        Phone: (919) 546-4739



______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to