Page 1 of 1

ARMbasic Compiler Problem

Posted: Thu Apr 30, 2020 8:37 pm
by David Senften
I have been using the BASICtools software for some time.
I recently reinstalled BASICtools and now I can only compile successfully if I enter a program from the keyboard.
When I load a text file from Notepad I get "Unreachable statement" errors for such things as:
A= 1 TO 10
(and others)

These all compile perfectly when entered from my computer keyboard.
Any suggestions?

Dave Senften

Re: ARMbasic Compiler Problem

Posted: Thu Apr 30, 2020 10:19 pm
by basicchip
The compiler now expects a MAIN: to be part of your program, and in any large program would be there anyway

So when you load a file in for compiling it must have a MAIN; and if your code starts at the first statement the MAIN: needs to be there.

I will add a page to describe unreachable statement errors in the help files. Thanks for pointing that out