Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
STOP Statement Details
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
STOP [n%]
Usage Notes
■ You can place STOP statements anywhere in a program to terminate
execution.
■ In a program compiled with the /O option, STOP closes all files and
returns to the operating system. In Visual Basic, STOP leaves files open
and returns to the programming environment.
■ If you use the /D, /E, or /X compile option on the BC command line, the
STOP statement prints line numbers as follows:
If Your Program Has... STOP Prints...
═══════════════════════ ════════════════════════════════════════
Line numbers Number of the line where execution
stopped
No line number for STOP Most recent line number
No line numbers 0
See: ◄BC Command-Line Options►
■ In the programming environment, STOP always returns an error level of 0,
even if you specify a different error level.
■ In previous versions of Microsoft Basic, STOP statements were used for
debugging. In Visual Basic, you do not have to use STOP for debugging.