Sub Statement

āļ‹āļ´ āļģāˇ–āļ§āˇ’āļąāļēāļšāˇŠ āļ…āļģāˇŠāļŽ āļ¯āļšāˇŠāˇ€āļēāˇ’.

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē


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

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

Name: Name of the subroutine.

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

Type: āˇ€āļģāˇŠāļœ-āļ´āˇŠâ€āļģāļšāˇāˇāļą āļ¸āˇ–āļŊāļ´āļ¯āļē.

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


Sub Example
    REM āļ´āˇŠâ€āļģāļšāˇāˇāļą āļšāˇ’āˇ„āˇ’āļ´āļēāļšāˇŠ
End Sub

Please support us!