End Statement
Language Items List
Definition:
Ends an Phoenix procedure or block of statements.
Syntax:
End[{Function | If | Select | Sub | Type}]
Details:
You can combine the End statement with various keywords to terminate one of
several types of statement blocks as described in the following table:
Statement Description
End Function Ends a Function procedure definition. End Function is required to terminate
each Function.
End If Ends a block If...Then statement. End If is required to terminate a block
If...Then...Else.
End Select Ends a Select Case block. End Select is required to terminate each Select Case
statement.
End Sub Ends a Sub procedure definition. End Sub is required to terminate each Sub.
End Type Indicates the end of a user-defined type definition. End Type must be used
with the Type keyword.
Note: Do not use the End keyword by itself. To terminate program execution, use
Application.Quit.
See Also:
Exit Statement
Function Statement