Sub Statement

Definira subrutinu.

Syntax


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

Parametri:

Name: Name of the subroutine.

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

Type: Type-declaration key word.

Primjer:


Sub Example
    REM neki izrazi
End Sub