Results 1 to 5 of 5

Thread: vbNewLine

  1. #1
    Conrad Guest

    Default vbNewLine

    How do I go about replacing a vbNewLine to a <BR> in VBScript(ASP)?

  2. #2
    schnookums Guest

    Default RE: vbNewLine

    to a &#039what&#039?<BR><BR>Well, whatever it was that you meant to type, you should be able to use the &#039replace&#039 function, e.g.<BR><BR>strNew = replace(strOld, vbNEWLINE, "<BR>")<BR><BR>would replave the newline with an HTML tag <BR>

  3. #3
    KPW Guest

    Default RE: vbNewLine

    I&#039m sure Conrad meant to have a &lt;BR&gt; tag there; however, the message board interprets BR tags.<BR><BR>strNew = Replace(strOld, vbNewLine, "&lt;BR&gt;")<BR><BR>HTH

  4. #4
    schnookums Guest

    Default RE: vbNewLine

    You&#039re right, my answer was the same as yours, however the board changed my {br}. :)

  5. #5
    KPW Guest

    Default Thought so...

    It seems to me like a modification to this board&#039s code is in order...

Posting Permissions

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