Formatting text

Results 1 to 2 of 2

Thread: Formatting text

  1. #1
    Join Date
    Dec 1969

    Default Formatting text

    Hi, I want have people enter some things in a textarea. Once they press submit I want it to add <BR> and &#060;P&#062; where there are lines, or paragraph brakes. Could someone please tell me how to do this. Thanks.

  2. #2
    Join Date
    Dec 1969

    Default RE: Formatting text

    Simply use the Replace statement. Let&#039s say that you read the value of the textbox into a variable name strTextBoxValue. Just do this:<BR><BR>strTextBoxValue = Replace(strTextBoxValue,vbCrLf,"&#060;P&#062;")<BR ><BR>That says, search the string strTextBoxValue, search for any carriage returns (vbCrLf), and replace them with &#060;P&#062; tags! :)

Posting Permissions

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