Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Attachmate.Reflection.Objects.Emulation.OpenSystems Library / Terminal Object / WaitForCall Method
In This Topic
    WaitForCall Method
    In This Topic
    Initializes the modem to automatically answer an incoming call and opens a status dialog box until a connection has been established.
    expression.WaitForCall() As ReturnCode
    where expression is a variable that represents a Terminal Object

    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.

    This method does not check to see whether a modem is actually connected to the serial port. It simply transmits the Hayes "AT" command to get the modem's attention, and then transmits the "ATS0=1" command to place the modem in answer mode. If the command fails for any reason, no error is returned. The procedure continues to the next statement only after the status box is dismissed (either because the modem established a connection, the user canceled, or the dialog box timed out).
    See Also