Link to home
Create AccountLog in
Avatar of brasso_42
brasso_42

asked on

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
Avatar of Big Monty
Big Monty
Flag of United States of America image

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?
Avatar of brasso_42
brasso_42

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ok thanks