ASP.Net VB define block of text


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


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

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

Who is Participating?
Big MontySenior Web Developer / CEO of 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
Big MontySenior Web Developer / CEO of 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?
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
brasso_42Author Commented:
ok thanks
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.