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.

Type: 型宣言キーワード

例:


Sub Example
    REM 一部の文
End Sub