Solved

What is &_?

Posted on 2006-07-05
2
1,165 Views
Last Modified: 2008-03-17
Still fairly new to ASP... what is &_? is it some sort of concatination?
0
Comment
Question by:cipiWeb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

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/…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

695 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