RE: newlines in ASP
by "Cyanide _7" <leo7278(at)hotmail.com>
|
Date: |
Fri, 12 May 2000 23:26:14 CDT |
To: |
eric_alt(at)hotmail.com |
Cc: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
>and in js, text += newtext +" \n";
i know, but \n does not work in asp.
>We used to use chr$(13) in basic all the time, but I haven't run across
>that in js...is it possible?
yes, its the fromCharCode method of the string object:
Chr(13) becomes String.fromCharCode(13)
>I think chr$(10) is carriage return without line down, not sure as I never
>used it.
Chr(13) is the carriage return and Chr(10) is the line feed.
>
>How do you reply to list anyway?
>
send an email to hwg-languages(at)hwg.org. you did it with this email! -
Cyanide_7
>I'm not an ace ASP programmer by any means, but I found when I was creating
>text for email replies that sometimes using chr(10) didn't work. The lines
>ran together for some people getting the mail. I replaced all the chr(10)'s
>with chr(13)'s and it works better now.
>
>So I build lines together into a larger variable I can then put into an
>email by doing this:
>
>EmailBodyText = "Sincerely," & Chr(13)
>EmailBodyText = EmailBodyText & " " & Chr(13)
>EmailBodyText = EmailBodyText & "Chuck Evans" & Chr(13)
>EmailBodyText = EmailBodyText & "Captura Software, Inc." & Chr(13)
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA