?
Solved

Simple VBScript question

Posted on 2000-04-27
3
Medium Priority
?
161 Views
Last Modified: 2010-05-02
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
Comment
Question by:Dyrewolf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
setiawan earned 200 total points
ID: 2758180
Hi Dyrewolf
use chr(13) & chr(10) instead of "\n"

 danny
0
 

Author Comment

by:Dyrewolf
ID: 2758196
Is it literally "chr(13) & chr(10)" or were you saying one or the other?

Thanks
Adam
0
 
LVL 6

Expert Comment

by:setiawan
ID: 2758215
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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question