Solved

Simple VBScript question

Posted on 2000-04-27
3
156 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

786 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