ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

 Top ASP 101 Stories Top ASP 101 Stories
Getting Scripts to Run on a Schedule
The Top 10 ASP Links @
What is and Why Do I Need It?

How To Search for ASP Knowledge Base Articles
Show All Tips >>
ASP 101 RSS Feed ASP 101 Updates

Quick Tips

VBScript's Line Continuation Character

Did you ever have a really long line of code to write and get sick of scrolling left and right trying to read it? Well VBScript has this neat little invention that makes that really unnecesary. It's called the line continuation character and it's simply an underline ( _ ). It allows you to nicely split your lines into a more manageable form.

Instead of:

strSQL = "SELECT field FROM table WHERE field = 'value' ORDER BY field ASC"

You could just as easily use:

strSQL = "SELECT field " _
	& "FROM table " _
	& "WHERE field = 'value' " _
	& "ORDER BY field ASC"

Both of the above will acheive the same result, but the second one will keep your neck from getting sore from looking back and forth.

(Ok... so I'm exagerating this simple and relatively short-lined example a little, but you get the point.)

Previous      Show All Tips      Next

If you have a tip you would like to submit, please send it to:

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers