Text Area carrage return?

Results 1 to 2 of 2

Thread: Text Area carrage return?

  1. #1
    Join Date
    Dec 1969
    Posts
    511

    Default Text Area carrage return?

    I writing the text that I want to appear in a text area but I&#039m having the trouble getting the text to appear as I want it to. All I want to do is stick a blank line in or move to a new line. Any one get any ideas or escape that I could use.<BR><BR>&#060;textarea>Hello this is a test message. New line. Another New line&#060;/textarea><BR><BR>Hello this is a test message.<BR>New Line<BR>Another New line<BR><BR>Thanks<BR><BR>Pete<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    168

    Default RE: Text Area carrage return?

    &#060;%<BR>Function FormatStr(String)<BR>on Error resume next<BR>String = Replace(String, CHR(13), "")<BR>String = Replace(String, CHR(10) & CHR(10), "&#060;/P>&#060;P>")<BR>String = Replace(String, CHR(10), "&#060; BR >")<BR>&#039take the spaces out of the BR tag above <BR>FormatStr = String<BR>End Function<BR>&#037;&#062;<BR><BR>This is a text area with line breaks:&#060;p><BR>&#060;%=FormatStr("text_area_na me")&#037;&#062;<BR><BR>Hope this helps... Cheers!

Posting Permissions

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