Active Forums => QB64 Discussion => Topic started by: vitcunha on September 16, 2020, 08:17:19 pm
Title: Multi-line "FOR"/"NEXT" statement?
Post by: vitcunha on September 16, 2020, 08:17:19 pm
Hello there QB64 community!
Happy to be here, this is my first post! So I apologize in advance if this is not the right place to post this!
I'm currently on a journey to revive lots of programs from the 80s/90s my electronics teacher wrote back in the day and recompile them in modern architectures so we can access them in modern computers.
All these programs are finished and run - or at least they did, when using other basic interpreters. I first made a Dosbox port with the BASICAMA interpreter he also provided me, and I could run them all. BASICAMA died and there is no documentation out there, but I found PC-BASIC (http://robhagemans.github.io/pcbasic/doc/2.0/) which is basically the perfect modern spiritual successor and it is almost identical. Same menus, functionalities... and memory restrictions. (and it's an interpreter, I need a compiler)
Thing is, I've been using QB64 and it has been working wonders so far - by the way, I am truly thankful for the hard work here - but there are some commands that or syntaxes that qb64 simply doesn't support. (I must say in advance that I am totally noob around types of BASIC, its evolution and which version supports which commands - but I think this info may help you guys see where I'm coming from).
Well, that's it for the introduction. In summary, I want to run and compile this code I'm pasting here but I'm getting a "NEXT without FOR" error. Here's the snippet around the error: