lesjuby
Fri Aug 26 15:42:17 CDT 2005
Uuuuuuhh..... it was the chr(13) instead of chr(10)
A throwback to dBase and the old DOS days.
Works great, thanks for the help !
.les.
On Fri, 26 Aug 2005 16:15:18 -0400, "Aaron Bertrand [SQL Server MVP]"
<ten.xoc@dnartreb.noraa> wrote:
>I've never had a problem using Replace(), but I use chr(10) or vbCrLf, not
>chr(13). I also only doing this when *displaying* the data, not when
>storing it. I'm not sure why you think "the embedded return is lost"
>because it is not. Could you show some sample code that reproduces this
>problem?
>
>
http://www.aspfaq.com/2188
>
>A
>
>
>"Les Juby" <lesjuby@anti-spam.iafrica.com> wrote in message
>news:430f75b2.10108528@news.telkomsa.net...
>> Can someone please help with a suggestion as to how I can keep the
>> formatting (carriage returns) that the user enters into a memo field
>> and then display that later.
>>
>> I figured I might be able to use:
>> 'replace carriage returns with BRs
>> comment=Replace(comment, chr(13), "<br>")
>> but obviously net.!
>>
>> The <pre> tag doesn't sem to help either as the embedded return is
>> lost by the time you get past Request.Form......
>>
>> thanks
>>
>> .les.
>