ABORT

From Smart Box
Jump to navigation Jump to search

Syntax[edit]

ABORT

Description[edit]

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[edit]

PRINT "Press S to stop!"
IF INKEY$="S" THEN ABORT

Associated keywords[edit]