TIEPortableDevices.ObjectIDToIndex
Declaration
function ObjectIDToIndex(const sObjectID: WideString): Integer;
Description
Returns the index of the object in the
Objects list with the specified ID.
Result is -1 if the ID is not valid.
// Get the friendly name of the selected object in listbox
sFriendlyName := pd.Objects[ pd.ObjectIDToIndex( lbxObjects.Items[ lbxObjects.ItemIndex ] ) ].FriendlyName;