Yup. That'll work, too. Glad to be of some help. :-)
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -----Original Message-----
: From: Russ [mailto:russ@;unrealisticexpectations.com]
: Sent: Monday, November 11, 2002 11:56 PM
: To: CF-Talk
: Subject: RE: Retrieving CRs from the database
:
:
: For what it's worth, I finally got what was being referred to and I
: resolved it like this:
:
: <!--- Setting the characters to be replaced in the output from the
: database --->
: <CFSET strCRLF = #Chr(10)# & #Chr(13)#>
: <CFSET strHTMLCRLF = "<P/>">
: <html>
:
: <!--- Display the comments, replacing CRLFs --->
: #Replace(CMComments,strCRLF,strHTMLCRLF)#
:
: Thanks for the assist!
:
: Russ
:
: > -----Original Message-----
: > From: Russ [mailto:russ@;unrealisticexpectations.com]
: > Sent: Monday, November 11, 2002 8:29 PM
: > To: CF-Talk
: > Subject: RE: Retrieving CRs from the database
: >
: >
: > Ben--
: >
: > I don't think I understand how I could do this--I'd need to
: > do it to content that's being dumped into a memo field and
: > then live to the page. I've never had to throw something like
: > this together, so I don't grasp what you're telling me to do.
: >
: > Thanks,
: >
: > Russ
: >
: > > -----Original Message-----
: > > From: Ben Doom [mailto:bdoom@;moonbow.com]
: > > Sent: Monday, November 11, 2002 4:14 PM
: > > To: CF-Talk
: > > Subject: RE: Retrieving CRs from the database
: > >
: > >
: > > I've done something similar from forms.
: > >
: > > Basically, I use one replace to remove all the chr(13)'s,
: > > then replace all chr(10)'s with <br>#chr(10)#.
: > >
: > >
: > > --Ben Doom
: > > Programmer & General Lackey
: > > Moonbow Software
: > >
: > > : -----Original Message-----
: > > : From: Russ [mailto:russ@;unrealisticexpectations.com]
: > > : Sent: Monday, November 11, 2002 3:30 PM
: > > : To: CF-Talk
: > > : Subject: Retrieving CRs from the database
: > > :
: > > :
: > > : I'm pulling content from my database that has been inputted
: > > via a form.
: > > : When I output as HTML, well, let's just say I don't want
: > to do that.
: > > :
: > > : Instead, I'd like to understand how to recognize a CR from
: > > the database
: > > : and treat it as a <BR> or <P> as necessary.
: > > :
: > > : Has anyone worked on this or can give me some advice as to how to
: > > : perform?
: > > :
: > > : Thanks,
: > > :
: > > : Russ
: > > :
: > > :
: > >
: >
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm