TIndexDefs.Find¶
Find an index by name.
Declaration¶
Source position: db.pas line 1285
public
function TIndexDefs.Find(const IndexName: string) : TIndexDef;
Description¶
Find overloads the TDefCollection.Find method to search and return a TIndexDef instance based on the name. The search is case-insensitive and raises an exception if no matching index definition was found. Note: TIndexDefs.IndexOf can be used instead if an exception is not desired.
See also¶
| Name | Description |
|---|---|
| TIndexDef | Index definition. |
| TDefCollection.Find | Find an item by name. |
| TIndexDefs.FindIndexForFields | Find index definition based on field names. |