Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Carraige Return?

Status
Not open for further replies.

streborr

IS-IT--Management
Jan 16, 2002
98
I have this to convert the cr to a <br>
and it works fine:

message = replace(message, vbcrlf, &quot;<br>&quot;)

but when I retreive it from the db I can't switch it back for display.

message = replace(oRS(&quot;message&quot;), &quot;<br>&quot;, vbcrlf)

Thanks,
Rick
 
I would suggest storing it with the cr's in it and only putting the <br>'s in when you actually are going to display it. This way your keeping the data seperate from it's presentation which means you can serve it up for editing or review exactly as it is held in ther database, or do your replace on the cr's when your displaying it in the body of the page.

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top