Sub Statement

Определяет подпрограмму.

Синтаксис


Sub Name[(VarName1 [As Type][, VarName2 [As Type][,...]])]
Участок_программы
End Sub

Параметры:

Name: Name of the subroutine.

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

Тип. Ключевое слово описания типа.

Пример:


Sub Example
    REM несколько инструкций
End Sub

Please support us!