473,499 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Continue code on next line

How do I continue code on another line when one line becomes too long?
I always get compilation errors.
May 8 '07 #1
7 23647
On May 8, 10:50 pm, "dancer" <dan...@microsoft.comwrote:
How do I continue code on another line when one line becomes too long?
I always get compilation errors.
Use underscore "_" sign

May 8 '07 #2
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

dHow do I continue code on another line when one line becomes too
dlong? I always get compilation errors.
d>
May 8 '07 #3
On May 8, 10:57 pm, Michael Nemtsev <nemt...@msn.comwrote:
where?
VB :-)

May 8 '07 #4
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
"dancer" <da****@microsoft.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
How do I continue code on another line when one line becomes too long?
I always get compilation errors.

May 8 '07 #5
VB

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:a2***************************@msnews.microsof t.com...
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

dHow do I continue code on another line when one line becomes too
dlong? I always get compilation errors.
d>

May 9 '07 #6
Thank you very much for being so specific.
"Ross Culver" <rc*****@warrenalloy.comwrote in message
news:uL*************@TK2MSFTNGP04.phx.gbl...
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
"dancer" <da****@microsoft.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>How do I continue code on another line when one line becomes too long?
I always get compilation errors.


May 9 '07 #7
For VB.NET just use the underscore ( _ ) character.
For example:

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

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
"dancer" <da****@microsoft.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
How do I continue code on another line when one line becomes too long?
I always get compilation errors.
May 9 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
10513
by: les_ander | last post by:
Hi, suppose I am reading lines from a file or stdin. I want to just "peek" in to the next line, and if it starts with a special character I want to break out of a for loop, other wise I want to...
2
3546
ID94
by: ID94 | last post by:
How do i code next line. ie: when assigning text to a text box?
6
2664
by: Jacob Rael | last post by:
Hello, I have a simple script to parse a text file (a visual basic program) and convert key parts to tcl. Since I am only working on specific sections and I need it quick, I decided not to...
4
3747
jeffbroodwar
by: jeffbroodwar | last post by:
HI, I'm trying to call a message box, but the message that i'd like to display is too long. so i have to cut it to 3 lines.... the problem is, how can i continue to the next line without...
2
1995
by: srini4vasan | last post by:
#include <stdio.h> int main() { char n, m; puts (" Enter the first string and . to terminate :"); do { n = getchar(); putchar(n);
10
2358
by: scooby dooby | last post by:
I have an input box statement which can take a integer as below: InputBox("eneter the number") ----- ------- If the user doesn't enter any input for a particular time say 30 secs, i should be...
1
2694
by: Venkat143 | last post by:
Hi, my present o/p in a text file is: 0,time,t,,,,,,,1,w,w,,.......2,e,rt,y,,,,,,,,3,y,u,i,7.54,g,.........32,r,a,q,........7040,u.... desired o/p is: 0,time,t,,,,,,, 32items 1,w,w,,..........
6
17865
by: ismailc | last post by:
Good day, i have an If statement that is to long for one line goes to the second line. I cant defein var for it as when the object are not there it gives an error. So i had to go with the...
3
7550
by: Sparkey | last post by:
I have a working code that gives me the prime numbers but I want it to print out either a - if it not a prime and if it is a prime print the prime. I have that working but I can not get it to stop at...
0
7134
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7012
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7225
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7392
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5479
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4920
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3101
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.