STOP
Stop Program Execution
This directive terminates program execution and initializes certain task parameters.
Syntax
Section titled “Syntax”STOPRemarks
Section titled “Remarks”This directive has the same effect as the END directive but doesn’t terminate a MERGE directive when encountered in reading program lines from a file.
The exact effects of this directive are:
1 Does not alter the value of variables.
2 Clears the return address stack used to hold address values for certain directives, i.e., FOR/NEXT, RETURN, RETRY, etc.).
3 Sets value of ERR and CTL to 0.
4 Sets PRECISION to 2, ends FLOATING POINT.
5 Sets SETERR and SETESC to 0.
6 Closes any files or devices.
7 Sets program execution pointer to the first program line.
8 Does not DROP public programs, which have been made resident by an ADDR directive.
9 Does not DROP files, which have been added to the File Control Table by an ADD directive.
10 Does not affect system variables such as TIM (Time) and DAY (Date).
11 Terminates any SETTRACE directive.
Examples
Section titled “Examples”STOPterminates the current program and affects the parameters as listed above.
See also
Section titled “See also”BEGIN, CLEAR, END, MERGE, and RESET directives
From the Thoroughbred Basic Language Reference, Volume III: R–Z, version 8.9.1. Open this page in the PDF