END Statement
◄Summary► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Ends a program, procedure, statement block, or user-defined data type.
END [DEF | FUNCTION | IF | SELECT | SUB | TYPE | n%]
■ DEF Ends a multiline DEF FN function definition
■ FUNCTION Ends a FUNCTION procedure definition
■ IF Ends an IF...END IF or IF TYPEOF statement
■ SELECT Ends a SELECT CASE block
■ SUB Ends a SUB procedure
■ TYPE Ends a user-defined data type definition
■ n% Sets the MS-DOS error level variable used in batch files
or non-Visual Basic programs; untrapped errors return a
value of -1
See Also
◄DEF FN Statement► ◄FUNCTION Statement►
◄IF...END IF Statement► ◄SELECT CASE Statement►
◄STOP Statement► ◄SUB Statement►
◄SYSTEM Statement► ◄TYPE Statement►