Find location of item by name.
Source position: db.pas line 167
public function TDefCollection.IndexOf( |
const AName: string |
):LongInt; |
AName |
|
Name to look for. (case insensitive). |
Index of the found item, or -1 if none was found.
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.
|
Find an item by name. |
|
|
Name of the item. |