TStrings.IndexOfObject function
Finds an object in the list and returns its index.
Declaration
function IndexOfObject(AObject: TObject): Integer; virtualDescription
IndexOfObject searches through the list of strings till it find a
string associated with
AObject, and returns the index of this
string. If no such string is found,
-1 is returned.
- Only the first occurrence of a string with associated object
AObjectis returned; if more strings in the list can be associated withAObject, they will not be found by this routine. - The returned position is zero-based, i.e. 0 indicates the first string in the list.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
