Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

What is &_?

Posted on 2006-07-05
2
Medium Priority
?
1,201 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 80 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 120 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 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