Oops! Had an error in my suggested code.

<cfset bad_desc_txt = Replace(bd_desc,chr(13)&chr(10),"<br>","ALL")>

> -----Original Message-----
> From: Everett, Al [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 10:50 AM
> To: CF-Talk
> Subject: RE: Carriage returns
> 
> 
> Well, first, you shouldn't have the " and the #
> 
> Second, I believe that Windows CRLF is CHR(13)&CHR(10) so you 
> should change
> the order.
> 
> <cfset bad_desc_txt = Replace(bd_desc,"chr(13)&chr(10)","<br>","ALL")>
> 
> 
> What I tend to do since Mac and Unix are different than 
> Windows is to do a
> couple of more steps first.
> 
> 1. Replace all CHR(13) with CHR(10)
> 2. Replace all CHR(10)&CHR(10) with a single CHR(10)
> 3. Replace all CHR(10) with <br>
> 
> 
> > -----Original Message-----
> > From: Eric Creese [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 26, 2003 10:46 AM
> > To: CF-Talk
> > Subject: RE: Carriage returns
> > 
> > 
> > Ok I am getting lost here now.
> > 
> > here is my code, what am I doing wrong?
> > 
> > <cfset bad_desc_txt = 
> > Replace("#bd_desc#","chr(10)&chr(13)","<br>","ALL")>
> >                             
> > 
> > -----Original Message-----
> > From: Mike Townend [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 26, 2003 9:39 AM
> > To: CF-Talk
> > Subject: RE: Carriage returns
> > 
> > 
> > I tend to use
> > 
> > Replace(sfoo, Chr(10), "<br>", "ALL")
> > 
> > HTH
> > 
> > 
> > 
> > -----Original Message-----
> > From: Eric Creese [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, June 26, 2003 15:30
> > To: CF-Talk
> > Subject: RE: Carriage returns
> > 
> > 
> > This is what I got,  but I need the carriage return value please
> > 
> > REReplace("bd_desc","????????????","<br>","ALL")
> > 
> > -----Original Message-----
> > From: Thomas Chiverton [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 26, 2003 9:09 AM
> > To: CF-Talk
> > Subject: Re: Carriage returns
> > 
> > 
> > On Thursday 26 Jun 2003 15:01 pm, Eric Creese wrote:
> > > Does anyone have handy the replacement code for carriage 
> > returns to be 
> > > replaced with a <br>? I can not remember the syntax?
> > 
> > http://livedocs.macromedia.com/cfmxdocs/CFML_Reference/functio
> ns-pt269.jsp#1
> 111522
> 
> -- 
> Thomas C
> Advanced ColdFusion Programmer
> 
> PLEASE NOTE: When the Recipient Is Not Directly Observing 
> This E-mail, It
> May 
> Cease to Exist or Will Exist Only in a Vague and Undetermined 
> State. PLEASE
> ALSO NOTE: I don't speak for the company that sent this.
> 
> 
> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to