Solved

VBScript line continuation aspx

Posted on 2010-09-07
5
883 Views
Last Modified: 2012-05-10
How do I continue on to another line in VBScript

I'm moving from a asp to a aspx page

I have a sql call that goes over multiple lines and to continue each line I did this

call = "code" & _
           "code" & _
           "code"

What is the correct way to do it as part of a aspx page?

0
Comment
Question by:darren-w-
  • 3
  • 2
5 Comments
 
LVL 13

Author Comment

by:darren-w-
ID: 33617973
actually is there a better cleaner way to do this? as this syntax does work?
0
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 250 total points
ID: 33618028
About the only other way that isn't cleaner but can be easire to maintain is:

call = "code"
call = call & "code"
call = call & "code"

cHRIS
0
 
LVL 13

Author Comment

by:darren-w-
ID: 33618168
I tried abbreviating it to

call = call & "code"
call +=  "code"

And that seems to work?
0
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 33618221
I tend to avoid those constructs as they are not generally easy for all to read, but if it works in your install and you're happy with the construct then of course ...

Chris
0
 
LVL 13

Author Closing Comment

by:darren-w-
ID: 33618623
Thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

12 Experts available now in Live!

Get 1:1 Help Now