Solved

VBScript line continuation aspx

Posted on 2010-09-07
5
923 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-
[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
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 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