Contents
Index 🔎︎

# Wait Statement

Prekida izvršavanje programa na navedeno vrijeme u milisekundama.

### 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 & " Ticks" ,0,"The pause lasted"
    End Sub

Related Topics

WaitUntil statement