ImageEn, unit iexWPD

TIEPortableDevices.ObjectIDToIndex

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.


Example

// Get the friendly name of the selected object in listbox
sFriendlyName := pd.Objects[ pd.ObjectIDToIndex( lbxObjects.Items[ lbxObjects.ItemIndex ] ) ].FriendlyName;