Proplem compiling Qbasic file because of RUN Statement

The program will work as a .BAS file but when I compile it, it says

there is a subprogram error with the line IF L$ = "START" THEN RUN. How

do I get the program to start over without getting this error?


  • I would use a batch file such as:



    If errorlevel 1 then goto restart

    Change the line to read:

    If L$ = "Start" then System

    I don't remember the syntax, but the command "System" can be used to return an errorlevel. When your program finishes, the batch file will check the errorlevel. If it's greater than or egual to 1, it would send control back to the beginning of the file, which would start your program agian.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!