BASIC

Author Topic: GLBasic line continuation?  (Read 1612 times)

Offline Eric.Erpelding

  • Mc. Print
  • *
  • Posts: 32
    • View Profile
GLBasic line continuation?
« 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?

Offline kanonet

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1142
    • View Profile
    • My GLBasic code archiv
Re: GLBasic line continuation?
« Reply #1 on: 2016-Jul-15 »
Yes, "_" does work in GLBasic too.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Offline Slydog

  • Prof. Inline
  • *****
  • Posts: 929
  • KodeSource
    • View Profile
    • KodeSource
Re: GLBasic line continuation?
« Reply #2 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!
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Offline Eric.Erpelding

  • Mc. Print
  • *
  • Posts: 32
    • View Profile
Re: GLBasic line continuation?
« Reply #3 on: 2016-Jul-17 »
Thank you.

VB6 is a very good language.
I have read that it still works on computers running Windows 10.

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
Re: GLBasic line continuation?
« Reply #4 on: 2018-Feb-24 »
Yes, "_" does work in GLBasic too.

It doesn't work for me :( IDE 15.089

Offline Qedo

  • Mr. Polyvector
  • ***
  • Posts: 145
  • UNUS SED LEO
    • View Profile
Re: GLBasic line continuation?
« Reply #5 on: 2018-Feb-24 »
_ Work perfectly in IDE 15.089
ciao
Qedo

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
Re: GLBasic line continuation?
« Reply #6 on: 2018-Feb-25 »
It says syntax error.

Offline MrPlow

  • Prof. Inline
  • *****
  • Posts: 1331
    • View Profile
Re: GLBasic line continuation?
« Reply #7 on: 2018-Feb-26 »
Hit [SPACE] then _ then [ENTER]
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

Offline adaz

  • Mc. Print
  • *
  • Posts: 48
    • View Profile
Re: GLBasic line continuation?
« Reply #8 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.