GLBasic forum

Main forum => GLBasic - en => Topic started by: Eric.Erpelding on 2016-Jul-15

Title: GLBasic line continuation?
Post by: Eric.Erpelding on 2016-Jul-15
Hello GLBasic forum members.
I have a question concerning long statements in GLBasic.
Does GLBasic have a way to continue a statement on another line?
One version of BASIC uses the underscore character, "_", at the end of a line to indicate that the statement continues on the next line of code.
Is there something similar in GLBasic?
Title: Re: GLBasic line continuation?
Post by: kanonet on 2016-Jul-15
Yes, "_" does work in GLBasic too.
Title: Re: GLBasic line continuation?
Post by: Slydog on 2016-Jul-15
Quote
One version of BASIC uses the underscore character, "_"

Come on, you can say it - it's VB6!  =D

Ha, I loved that language, despite its reputation.
Actually have it open at work right now fixing a bug in an older project of mine!
Title: Re: GLBasic line continuation?
Post by: Eric.Erpelding on 2016-Jul-17
Thank you.

VB6 is a very good language.
I have read that it still works on computers running Windows 10.
Title: Re: GLBasic line continuation?
Post by: adaz on 2018-Feb-24
Yes, "_" does work in GLBasic too.

It doesn't work for me :( IDE 15.089
Title: Re: GLBasic line continuation?
Post by: Qedo on 2018-Feb-24
_ Work perfectly in IDE 15.089
ciao
Qedo
Title: Re: GLBasic line continuation?
Post by: adaz on 2018-Feb-25
It says syntax error.
Title: Re: GLBasic line continuation?
Post by: MrPlow on 2018-Feb-26
Hit [SPACE] then _ then [ENTER]
Title: Re: GLBasic line continuation?
Post by: adaz on 2018-Feb-27
My mistake... I concatenated 5 lines, and in the 5th line there was a syntax error, but the Editor located the cursor to the first line, and I (of course) did not find any errors in that line.
So it works, thanks.