TApxModem.SendCommand

TApxModem

function SendCommand(const Command : string) : Boolean;

Provides a convenient method to send a custom command to the modem.

The SendCommand method can be used to send a modem command to the modem. SendCommand returns when the modem either responds to the command, or times out. If the modem returns a successful response, the return value will be True. If the modem returns a failure response, the return value will be False and the FailureCode property will indicate the type of failure based on the response.

See also: FailureCode, FailureCodeMsg