TIEPortableDevices.DeviceIDToIndex
Declaration
function DeviceIDToIndex(const sDeviceID: WideString): Integer;
Description
Return the index of the device in the
Devices list with the specified ID.
Result is -1 if the ID is not valid.
// Get the friendly name of the selected device in a listbox
sFriendlyName := Devices[ DeviceIDToIndex( lbxDevices.Items[ lbxDevices.ItemIndex ] ) ].FriendlyName;