Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmScreen Object / Wait Method
Wait time in milliseconds.
Example
In This Topic
    Wait Method (IbmScreen)
    In This Topic
    Waits for the specified duration before executing the next command in the procedure. The procedure containing the command is paused until the wait expires.
    Syntax
    expression.Wait( _
       ByVal waitTime As Integer _
    ) As ReturnCode
    where expression is a variable that represents a IbmScreen Object

    Parameters

    waitTime
    Wait time in milliseconds.

    Return Value

    One of the following ReturnCode enum values.

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

    Remarks

    For more about using the Wait method, see:

    Get Screen Data With an Excel Macro 

    Enter Data from an Excel Spreadsheet

     

    Example
    This example waits 10 seconds and displays a message when the time is up.
    Sub WaitBeforeContinuing()
        
        ThisIbmScreen.Wait (10000)
        
        MsgBox "Waited 10 seconds"
           
    End Sub
    See Also