Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Screen Object / WaitForIncomingData3 Method
wait timeout value (milliseconds). Value of 0 indicates wait indefinitely.
Specifies whether the keyboard is enabled while the call executes.
Example
In This Topic
    WaitForIncomingData3 Method
    In This Topic
    Waits for any data to come from the host.
    Syntax
    expression.WaitForIncomingData3( _
       ByVal timeout As Integer, _
       ByVal enablekeyboard As Boolean _
    ) As ReturnCode
    where expression is a variable that represents a Screen Object

    Parameters

    timeout
    wait timeout value (milliseconds). Value of 0 indicates wait indefinitely.
    enablekeyboard
    Specifies whether the keyboard is enabled while the call executes.

    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
    In this example, Reflection runs minimized until data is received from the host, at which time the Reflection Workspace returns to its normal size and becomes the active window.
    Sub WaitMinimized()
     
      With ThisFrame
         .WindowState = FormWindowState_Minimized
        
          ThisScreen.WaitForIncomingData3 5000, True
         .WindowState = FormWindowState_Normal
         .Activate
      End With
     
    End Sub
    See Also