?
Solved

What is &_?

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
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…
Suggested Courses

765 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