Continue code on next line

D

dancer

How do I continue code on another line when one line becomes too long?
I always get compilation errors.
 
M

Michael Nemtsev

Hello dancer,

C#/VB.NET/JS/HTML?
where?



---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

d> How do I continue code on another line when one line becomes too
d> long? I always get compilation errors.
d>
 
R

Ross Culver

To be more specific, each line of code must end with a space after your last
word and then the underscore. like " = myvariable _" There must be a hard
character return immediately following the underscore. You don't need the
quotation marks or "&" sign unless you would have used them anyway would
breaking the line.

Ross
 
D

dancer

Thank you very much for being so specific.


Ross Culver said:
To be more specific, each line of code must end with a space after your
last word and then the underscore. like " = myvariable _" There must be
a hard character return immediately following the underscore. You don't
need the quotation marks or "&" sign unless you would have used them
anyway would breaking the line.

Ross
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

For VB.NET just use the underscore ( _ ) character.
For example:

IF a = 1 _
AND b=2 THEN...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top