• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 950
  • Last Modified:

VBScript line continuation aspx

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
darren-w-
Asked:
darren-w-
  • 3
  • 2
1 Solution
 
darren-w-Author Commented:
actually is there a better cleaner way to do this? as this syntax does work?
0
 
Chris BottomleySoftware Quality Lead EngineerCommented:
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
 
darren-w-Author Commented:
I tried abbreviating it to

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

And that seems to work?
0
 
Chris BottomleySoftware Quality Lead EngineerCommented:
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
 
darren-w-Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now