NAME

stop - terminate program execution

SYNOPSIS

stop

DESCRIPTION

Stop 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 stop occurred.  Stop statements may occur anywhere in a program to terminate execution. 

EXAMPLE

The program
	10 input x, y
	20 f1 = x * y
	30 stop
	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

SEE ALSO

end, system

USAGE NOTES

The stop closes all files prior to program termination. 

from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber