ASP.Net VB define block of text

Hi

Is there any way in an ASP.net VB application to define a block of text that can go over multiple lines without using underscores?

e.g.

dim this as string
this = "Hello My
Name is fred"

dim NotThis as string
NotThis = "Hello My " _
& "Name is fred"


Thanks
LVL 1
brasso_42Asked:
Who is Participating?
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
well unfortunately you can't do what you're asking. you could put the sql script into a stored procedure or view, that way you could format it however you like
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
no, not really. the only alternative would be to assign the value to the variable each line:

dim this as string
this = "Hello My"
this += "Name is fred"

why don't you want to use the underscore?
0
 
brasso_42Author Commented:
Because when putting in SQL script that spans over 20-30 lines its messy

Putting it on 1 line makes it hard to read when debugging
0
 
brasso_42Author Commented:
ok 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.

All Courses

From novice to tech pro — start learning today.