These statements mark the end of control structures and major project elements such as procedures or modules.
End Class
-or-
End Function
-or-
End Get
-or-
End If
-or-
End Module
-or-
End Property
-or-
End Select
-or-
End Set
-or-
End Sub
-or-
End While
Prerequisites
Must always follow and match the type of control structure or procedure that is referenced.
Remarks
Each of the forms of the End statement are qualified by the type of control structure or procedure being terminated. Please see the documentation on the related statements and program elements for information on the End statements, e.g. see the While…End While Statements for information on the End While and see Sub for information on End Sub.
See Also
Statements |Function Statement | If…Then…Else…End If Statements | Module Statement | Select...Case Statements | Sub Statement | While…End While Statements