function SelectDevice : Boolean;
Displays the modem selection dialog.
SelectDevice displays the modem selection dialog, which lists the modems defined in the modemcap database. This method will return True if a device is selected, and False if the modem selection dialog is cancelled.
To select a modem from modemcap, the manufacturer and modem name must be selected. The "Manufacturer" combo box will contain a list of all manufacturers that are included in modemcap. When a manufacturer is selected, the "Modem name" combo box will contain a list of all modems from that manufacturer in modemcap. The "OK" button will be disabled until this requirement is satisfied. When the "OK" button is clicked, this method returns True and the SelectedDevice property will be updated to reflect the selected device. If the "Cancel" button is clicked, this method returns False and SelectedDevice is not updated.
If the AutoAnswer, ConfigAndOpen, or Dial methods are called without a valid modem specified in SelectedDevice, the modem selection dialog will be displayed. If a modem is not selected, the ecNoSelectedDevice exception will be raised.
Selecting a new modem configuration through the SelectedDevice property of the SelectDevice method while a connection is established will raise the ecModemBusy exception.
See also: GetDevConfig, SelectedDevice, SetDevConfig