TDefCollection.IndexOf function
Find location of item by name.
Declaration
function IndexOf(const AName: string): LongIntArguments
AName | Name to look for. (case insensitive). |
Function result
Index of the found item, or -1 if none was found.
Description
IndexOf searches in the collection for an item whose
Name property matches
AName and returns the index of the item if it finds one.
If no item is found, -1 is returned. The search is performed case-insensitive.See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
