Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

END

Ends a QBasic program.

Syntax

END

Comments

END by itself terminates your program and closes all files.

The END statement is also used with DEF FN, FUNCTION, IF, SELECT, SUB and TYPE. Those forms of END are discussed in relation to the appropriate statements.

END statements may be placed anywhere in the program to terminate execution.

An END statement at the end of a program is optional.

Example

FOR i = 1 TO 10
  PRINT i
NEXT
END

See Also