Sub Statement

Definiál egy szubrutint.

Szintaxis

Sub Name[(VarName1 [As Type][, VarName2 [As Type][,...]])]

utasításblokk

End Sub

Paraméterek:

Name: Name of the subroutine.

VarName: Parameter that you want to pass to the subroutine.

Típus: Típusdeklarációs kulcsszó.

PĂ©lda:

Sub Example

    ' utasítások

End Sub