ASP Q&A: The VBScript NewLine Character


Full Text Search: The Key to Better Natural Language Queries for NoSQL in Node.js

This is the fifth in a series of tips being posted based on the most read posts in one of our ASP Forums. (Previous Q&A)

Problem / Question:

How do you insert a new line when using VBscript? For example in JavaScript you can do the following:

Response.Write ("Here is my sentence .\n");

where \n" outputs a new line.

What is the syntax for VBscript?


For VBScript, the approach would be to use vbCrLf:

Response.Write ("Here is my sentence" & vbCrLf)

The vbCrLf equates to doing a Chr(13) + Chr(10) combination. You could also use vbNewLine, which is replaced with whatever value the platform considers a newline. On Windows, the result of vbCrLf and vbNewLine should be the same.

Based on posts by forum members at ASPMessageBoard


  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • As all sorts of data becomes available for storage, analysis and retrieval - so called 'Big Data' - there are potentially huge benefits, but equally huge challenges...
  • The agile organization needs knowledge to act on, quickly and effectively. Though many organizations are clamouring for "Big Data", not nearly as many know what to do with it...
  • Cloud-based integration solutions can be confusing. Adding to the confusion are the multiple ways IT departments can deliver such integration...

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date