Page 1 of 1

getting "unreachable" error msg

Posted: Wed May 05, 2021 12:57 am
by ctkilian
I just installed the latest Basictools on my Windows 10 PC. Everything had been working fine on my old XP machine (which just kicked the bucket), so I was surprised when I went to run the same programs on my new setup and all I get is "unreachable statement" errors on all my statements. I am using Notepad+. Simple programs do work when I type them in on the "Enter" line. I

Re: getting "unreachable" error msg

Posted: Thu May 06, 2021 10:13 pm
by basicchip
The compiler expects to see a main: or sub or function or label:at the beginning of the program

When you type in line by line, a dummy label is inserted before your typing

This added to flag statements before a main that would never get executed

If you really have no main, sub or functions in your program, insert a label or main: as your first statement