TIndexDefs.Add¶
Add a new index definition with given name and options.
Declaration¶
Source position: db.pas line 1344
public
procedure TIndexDefs.Add(const Name: string; const Fields: string;
Options: TIndexOptions); overload; overload;
Errors¶
If an index with the same Name already exists in the list of indexes, an exception will be raised.
See also¶
| Name | Description |
|---|---|
| TIndexDef | Index definition. |
| TNamedItem.Name | Name of the item. |
| TIndexDef.Fields | Fields making up the index. |
| TIndexDef.Options | Index options. |
| TIndexDefs.AddIndexDef | Add a new, empty, index definition. |