Export (0) Print Expand All  Sub Statement (Visual Basic)
[ statements ]     [ Exit Sub ]     [ statements ] End Sub
Optional. See Attribute List.     Optional. Can be one of the
following:  See Access Levels in Visual Basic.   Optional. Can
be one of the following:   Optional. See Shared.   Optional. See
Shadows.   Optional. See Async.            implementedprocedure
[ , implementedprocedure ... ]  Each implementedprocedure has
the following syntax and parts:        Required. Name by which
the procedure is defined in interface.      eventspecifier
[ , eventspecifier ... ]  Each eventspecifier has the following
syntax and parts:        Required. Name of the event this
procedure handles.   Optional. Block of statements to run within
this procedure.  End Sub  Terminates the definition of this
procedure.   Defining a Sub Procedure     Returning from a Sub
Procedure   The following example shows a return from a Sub
procedure.  Sub mySub(ByVal q As String) End Sub    Calling a
Sub Procedure      Async Su