ABORT
Syntax
ABORT
Description
This command interrupts a program which is running and prints the name of the procedure which was executing at the time. This can be used to finish a program when a certain condition occurs. This differs from the END command in that it ends all currently running procedures and returns to command mode. END will return to the calling procedure.
Example
PRINT "Press S to stop!" IF INKEY$="S" THEN ABORT