Solved

Simple VBScript question

Posted on 2000-04-27
3
155 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
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
setiawan earned 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

896 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now