Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

long lines of code? 2

Status
Not open for further replies.

JazzLeg

Programmer
Aug 22, 2002
63
GB
Hi,

If i have some really long lines of code (horizontally) that need to be on the same line. Is there a separator of some kind so I can write the code on different lines but have them execute as if they were on one line?

many thanks
 
This is possible when you use strings

i.e

str="This is the long line of string that may appear" & _
" in the other lines",

or could you send your long line code?

I hope this help you.

 
Thats the kind of thing, but it is for an 'if' statement with quite alot of OR's conditions.

I haven't got the code to hand right now i'm afraid.
 
try this out!
IF something1 = somethingB OR _
something2 = somethingA OR _
somehting3 = somethingC THEN
..........
use the underscore character "_" to saperate the lines..

good luck!
 
an alternative is to set up a group of booleane and set a boolean to each condition. Then test the booleans:

blnA = (Some1 = Val2)
blnB = (Some3 = Val4)
blnC = (Some5 = Val6)


If (blnA or blnB or BlnC) then



MichaelRed
m.red@att.net

Searching for employment in all the wrong places
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top