Results 1 to 2 of 2

Thread: replacing carraige returns with <BR>

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    5
    I'm trying to create a web page from within a vb program. The program gets info from a database and then writes it to a web page. In order for the info to appear in the correct format on the web page I need to be able to substitute any carraige returns with <BR>'s. I've tried using
    Replace(string,"\n","<BR>"), but I don't think that vb represents returns with \n. Any ideas?

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Use Replace(string, vbCrLf, "<BR>")

    Good luck!

Posting Permissions

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



Click Here to Expand Forum to Full Width