|
Set this property to indicate which line device should be used. All available devices are listed in the DeviceList property. Legal values for this property are 0 to ThbTapiLine.DeviceList.Count -1. The DeviceName property is set to the corresponding name.
The DeviceList property is of type TStrings. The TStrings.Objects property is used the store the DeviceID together with the device name. So you are able to assign this list to a ComboBox, sort the list and get the DeviceID back by type-casting the Objects propertiy to Integer. Do not sort the ThbTapiLine.DeviceList, use always a copy to do so.
Example
AvailabilityDesign-Time: None / Run-Time: Read, Write
Declarationproperty DeviceID: Integer; RemarksIf the device is active prior to setting the DeviceID, then you must deactivate the component (ThbTapiLine.Active := False) otherwise an exception will be raised. Your application should not save the DeviceID to restore an users configuration because it could change in due to installing/removing TAPI-devices. The better choice is to store the DeviceName. See AlsoThbTapiLine.DeviceName | DeviceList | Available |