Continue code on next line

  • Thread starter Thread starter dancer
  • Start date Start date
D

dancer

How do I continue code on another line when one line becomes too long?
I always get compilation errors.
 
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>
 
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
 
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
 
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

Back
Top