STOP

BASin

STOP

Statement/Command

STOP halts a program at a particular point. It may be necessary to use STOP to end the main section of a program in order to confine subroutines to a seperate section. STOP is also valuable in debugging a program.

How to use STOP

STOP is normally used to form a statement in a program. It is used on its own, for example

650 STOP

On execution, the program stops and the report

9 STOP statement

appears with the line and statement at which the program halted.

Debugging procedures, such as displaying and changing the values of variables, may then be undertaken. Entering CONTINUE subsequently causes the program to resume at the next statement with the new values.

Format

  • STOP

See also

Chapter 2, Chapter 3.