• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

Simple VBScript question

I'm a Perl guy doing some VBScript/ASP work. What is the equivalent of the "\n" carriage return escape character. In other words, I want to replace all newlines with HTML break tags, and using Replace(string, "\n", "<br>") isn't working (that should have been a br tag, not sure what it's going to look like).

Thanks
Adam
0
Dyrewolf
Asked:
Dyrewolf
  • 2
1 Solution
 
setiawanCommented:
Hi Dyrewolf
use chr(13) & chr(10) instead of "\n"

 danny
0
 
DyrewolfAuthor Commented:
Is it literally "chr(13) & chr(10)" or were you saying one or the other?

Thanks
Adam
0
 
setiawanCommented:
Yes, It is literally "chr(13) & chr(10)"

 regards
  danny
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now