Solved

What is &_?

Posted on 2006-07-05
2
1,074 Views
Last Modified: 2008-03-17
Still fairly new to ASP... what is &_? is it some sort of concatination?
0
Comment
Question by:cipiWeb
2 Comments
 
LVL 31

Assisted Solution

by:alorentz
alorentz earned 20 total points
ID: 17044299
Yes, it concatenates for line brakes

msg = "This is example " & _
  "of a line break concatenation"

response.write msg.


& means join
_ means got to next line
0
 
LVL 14

Accepted Solution

by:
dfu23 earned 30 total points
ID: 17045194
If you were to write alorentz's example in JScript it would be:

msg = "This is an example " +
  "of a line break concatenation";

Where VB (and VBScript) use the ampersand to concatonate strings JScript uses the plus sign. Also, VB statements are interpreted by line so if you need/want to continue writing the same statement to the next line you need to use an underscore. JScript is more like a C style syntax and should look for a semi-colon to end each statement ... even though they are not required in JScript ...
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

13 Experts available now in Live!

Get 1:1 Help Now