Solved

What is &_?

Posted on 2006-07-05
2
1,097 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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