Textarea and end of line

Results 1 to 2 of 2

Thread: Textarea and end of line

  1. #1
    Join Date
    Dec 1969

    Default Textarea and end of line

    Greetings,<BR><BR>I have a microsoft word document that needs to be pasted in a textarea box. This is used in an email function. The textarea doesn&#039;t recognize the end of the line as a hard return. I am using the following code but it doesn&#039;t work. it only works when you type directly into the textarea.<BR><BR>Text = request("text") <BR>Text = Replace(Text, vbCrLf, "<BR>")<BR><BR>I&#039;ve tried just about everything but to no avail. Is there a way to count number of characters and insert a <BR> tag? Only problem with that is that the document is lengthy and the email goes out to over 600 users so that would be slow. Any other thoughts would be very helpful. Thanks in advance.<BR><BR>dd

  2. #2
    Join Date
    Dec 1969

    Default RE: Textarea and end of line

    Try<BR><BR>Replace(str, chr(10) & chr(13), vbCrLF)<BR><BR>Hope that helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts