replace function

Results 1 to 2 of 2

Thread: replace function

  1. #1
    Join Date
    Dec 1969

    Default replace function

    I have the below code to replace my carraige return with a line break. Only problem is, it doesn&#039;t break unless it&#039;s a double return.<BR><BR>strtext=Replace(Request.form("resum e"), vbcrlf&vbcrlf, "&#060;p&#062;") <BR>strtext=Replace(strtext, "&#039;", "&#039;&#039;")<BR>strtext=Replace(strtext, vbcrlf, "<BR>")<BR><BR>I also know there is a better way to do the multip replacements.

  2. #2
    Join Date
    Dec 1969

    Default Looks okay to me...

    Have you looked at the generated HTML to see if the &lt;BR&#062;&#039;s are being put in place???<BR><BR>Remember, a &lt;BR&#062; does *NOT* space the lines out. It just starts a new line. So looks could be deceiving. Only by doing a VIEW --&#062;&#062; SOURCE of the HTML will you know.<BR><BR>

Posting Permissions

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