473,625 Members | 3,329 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 23656
On May 8, 10:50 pm, "dancer" <dan...@microso ft.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.co mwrote:
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****@microso ft.comwrote in message
news:%2******** ********@TK2MSF TNGP04.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.co mwrote in message
news:a2******** *************** ****@msnews.mic rosoft.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*****@warren alloy.comwrote in message
news:uL******** *****@TK2MSFTNG P04.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****@microso ft.comwrote in message
news:%2******** ********@TK2MSF TNGP04.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****@microso ft.comwrote in message
news:%2******** ********@TK2MSF TNGP04.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
10580
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 do readline(). Is there a way to do this? for example: while 1: line=stdin.peek_nextline()
2
3554
ID94
by: ID94 | last post by:
How do i code next line. ie: when assigning text to a text box?
6
2678
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 learn/try a full blown parsing module. My simple script works well until it runs into functions that straddle multiple lines. For example: Call mass_write(&H0, &HF, &H4, &H0, &H5, &H0, &H6, &H0, &H7, &H0, &H8, &H0, _
4
3751
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 generating errors? i know that this is a basic question. please help though...... thanks. JOptionPane.showMessageDialog("The proper READ syntax is : \n C:\ACR38_Driver.exe /ACTION=GET" " /FILE=C:\CARDOUTPUT.dat /LOG=C:\CARDLOG.txt \n \n The proper WRITE...
2
2004
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
2367
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 able to continue to next line. Please let me know your how can implement this?
1
2705
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,,....... 2,e,rt,y,,,,,,,,
6
17882
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 object value, I cant break it up more as it is a group of OR statements How do i let the if continue on next line? please help else if((document.getElementById('VE1020User').value=="LOCAL" ||...
3
7557
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 10 and then go to the next line. I have tried several diffrent ways of the if (i%10==0) System.out.println(); but to no avail. Please help. Here is most the code I have. int a=0;// int intializing a=0 int b=0;// int intializing b=0 public...
0
8256
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8189
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8694
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8635
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8497
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.