InfoConnect VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Screen Object / Wait Method
The wait time (in milliseconds).
Example
In This Topic
    Wait Method (Screen)
    In This Topic
    Waits for the specified duration.
    Syntax
    expression.Wait( _
       ByVal waitTime As Integer _
    ) As ReturnCode
    where expression is a variable that represents a Screen Object

    Parameters

    waitTime
    The wait time (in milliseconds).

    Return Value

    One of the following ReturnCode enumeration values.

    Member Description
    Cancelled Cancelled.
    Error Error.
    PermissionRequired Permission is required.
    Success Success.
    Timeout Timeout condition.
    Truncated The text is truncated.

    Example
    This example waits for 10 seconds.
    Sub ExampleForWait()
        Dim rcode As ReturnCode
        rcode = ThisScreen.Wait(10000)
        MsgBox "done waiting"
    End Sub
    See Also