ABORT: Difference between revisions

From Smart Box
Jump to navigation Jump to search
(Created page with "== 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 == Associated...")
 
 
Line 15: Line 15:
  IF INKEY$="S" THEN ABORT
  IF INKEY$="S" THEN ABORT


== Associated keyword ==
== Associated keywords ==


* [[END]]
* [[END]]

Latest revision as of 18:54, 6 October 2023

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]