Solved

Simple VBScript question

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA Word macro - how to get characters after the searched for string 5 93
Saving history changes to sub form 4 47
Copy a row 12 62
which modules are active in VB6 project? 6 39
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
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…

789 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