Wait Statement

āļ”āļļ āļ¸āˇ’āļŊāˇ’ āļ­āļ­āˇŠāļ´āļģ āˇ€āļŊāˇ’āļąāˇŠ āļŊāļļāˇ āļ¯āˇ”āļąāˇŠ āļšāˇāļŊāļē āˇƒāļŗāˇ„āˇ āļšāˇŠâ€āļģāļ¸āļŊāˇšāļ›āļąāļē āļšāˇŠâ€āļģāˇ’āļēāˇāļšāļģāˇ€āˇ“āļ¸ āļ…āļ­āˇŠ āˇ„āˇ’āļ§āˇ”āˇ€āļēāˇ’.

Syntax:

Wait millisec

Parameters:

millisec: Numeric expression that contains the amount of time (in milliseconds) to wait before the program is executed.

Error codes:

5 Invalid procedure call

Example:


Sub ExampleWait
Dim lTick As Long
    lTick = GetSystemTicks()
    Wait 2000
    lTick = (GetSystemTicks() - lTick)
    MsgBox "" & lTick & " āļ§āˇ’āļšāˇ’" ,0,"āļœāļ­āˇ€āˇ– āˇ€āˇ’āļģāˇāļ¸āļē"
End Sub

Please support us!