qbasic.hlp (Topic list)
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.
END Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Ends a program, procedure, block, or user-defined data type.
 
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.
 
Example:
    PRINT "Game over."
    END
 
See Also    DEF FN    FUNCTION    IF...THEN...ELSE    SELECT CASE
            STOP      SUB         SYSTEM              TYPE