TIndexDef.Create¶
Create a new index definition.
Declaration¶
Source position: db.pas line 1277
public
constructor TIndexDef.Create(Owner: TIndexDefs; const AName: string;
const TheFields: string;
TheOptions: TIndexOptions); overload; overload;
Description¶
Create initializes a new TIndexDef instance with the AName value as the index name, AField as the fields making up the index, and TheOptions as the options. Owner should be the TIndexDefs instance to which the new TIndexDef can be added.
Errors¶
If an index with name AName already exists in the collection, an exception will be raised.
See also¶
| Name | Description |
|---|---|
| TIndexDefs | A class to keep a list of index definitions. |
| TIndexDef.Options | Index options. |
| TIndexDef.Fields | Fields making up the index. |