logo       

RE: Keeping formatting information together: msg#00049

cms.cold-fusion.user.azcfug

Subject: RE: Keeping formatting information together

------=_NextPart_000_0005_01BFECBC.90F44E80 Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

You will need to convert the 'CRLF' string in the memo field to <BR>. I have
never done this in CF, but I've done it in ASP. Try converting the following
ASP commands to CF syntax:

crlf = chr(13) & chr(10)
memotextvalue = replace(rs.Fields("memofieldname").Value, crlf , "<br>")

Then use the 'memotextvalue' variable for your output.

Mike Roeglin


-----Original Message-----
From: William Golden [mailto:gworx@xxxxxxxxxxxxx]
Sent: Tuesday, July 11, 2000 8:36 AM
To: azcfug-VgYJa0VH1e9BDgjK7y7TUQ@xxxxxxxxxxxxxxxx
Cc: wdgolden@xxxxxxxxxxxxx
Subject: [azcfug] Keeping formatting information together


I am having a problem keeping my line returns and paragraphs in place when
I enter data into an Access database.

Is there a way that I can encode the <INPUT> or <CFINPUT> tags to keep the
above information for display.

Example:

Text Header
* text bullet
* text bullet

this comes out as

Text Header * text bullet * text bullet

Many thanks,
Bill Golden

------=_NextPart_000_0005_01BFECBC.90F44E80 Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Diso-8859-=
1">


<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN class=3D740171618-13=
072000>You=20
will need to convert the 'CRLF' string in the memo field to &lt;BR&gt;. I h=
ave=20
never&nbsp;done this in CF, but I've done it in ASP. Try converting the=20
following ASP commands to CF syntax:</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D740171618-13072000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN class=3D740171618-13=
072000>crlf =3D=20
chr(13) &amp; chr(10)<BR>memotextvalue =3D=20
replace(rs.Fields("memofieldname").Value, crlf ,=20
"&lt;br&gt;")<BR></SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN class=3D740171618-13=
072000>Then=20
use the 'memotextvalue' variable for your output.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D740171618-13072000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN class=3D740171618-13=
072000>Mike=20
Roeglin</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D740171618-13072000><BR>&nbsp;</DIV></SPAN></FONT>
<BLOCKQUOTE>
<DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT face=3DTah=
oma=20
size=3D2>-----Original Message-----<BR><B>From:</B> William Golden=20
[mailto:gworx@xxxxxxxxxxxxx]<BR><B>Sent:</B> Tuesday, July 11, 2000 8:36=20
AM<BR><B>To:</B> azcfug-VgYJa0VH1e9BDgjK7y7TUQ@xxxxxxxxxxxxxxxx<BR><B>Cc:</B>=20
wdgolden@xxxxxxxxxxxxx<BR><B>Subject:</B> [azcfug] Keeping formatting informa=
tion=20
together<BR><BR></DIV></FONT><TT>I am having a problem keeping my line re=
turns=20
and paragraphs in place when <BR>I enter data into an Access=20
database.<BR><BR>Is there a way that I can encode the &lt;INPUT&gt; or=20
&lt;CFINPUT&gt; tags to keep the <BR>above information for=20
display.<BR><BR>Example:<BR><BR>Text Header<BR>* text bullet<BR>* text=20
bullet<BR><BR>this comes out as<BR><BR>Text Header * text bullet * text=20
bullet<BR><BR>Many thanks,<BR>Bill Golden<BR></TT></BLOCKQUOTE></BODY></H=
TML>
------=_NextPart_000_0005_01BFECBC.90F44E80--



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise