stop - terminate program execution
causes all file buffers to be flushed, all open files to be closed,
program execution to terminate,
and a message to be displayed indicating where the
statements may occur anywhere in a program to terminate execution.
10 input x, y
20 f1 = x * y
40 f2 = f1 - 22 = f1 - 2
50 print f1, f2
prompts with a "?".
Assume responses of 3 and 13:
? 3, 13
The program would continue until the stop is encountered in line 30
and would print the message
STOP in line 30
closes all files prior to program termination.
The Basmark QuickBASIC Programmerís Manual