TDefCollection.IndexOf¶
Find location of item by name.
Declaration¶
Source position: db.pas line 167
public
function TDefCollection.IndexOf(const AName: string) : LongInt;
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¶
| Name | Description |
|---|---|
| TDefCollection.Find | Find an item by name. |
| TNamedItem.Name | Name of the item. |