ABORT

From Smart Box
Revision as of 18:46, 6 October 2023 by Benryves (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 keyword