Explanation
END Statement
Ends a program, procedure, block, or user-defined data type.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
END [{DEF | FUNCTION | IF | SELECT | SUB | TYPE}] |
DEF | Ends a multiline DEF FN function definition. |
FUNCTION | Ends a FUNCTION procedure definition. |
IF | Ends a block IF...THEN...ELSE statement. |
SELECT | Ends a SELECT CASE block. |
SUB | Ends a SUB procedure. |
TYPE | Ends a user-defined data type definition. |
If no argument is supplied, END ends the program and closes all files. |
PRINT "Game over."
END
See also: | DEF FN | FUNCTION | IF THEN ELSE | SELECT CASE | STOP | SUB | SYSTEM | TYPE |