Data.DB.TIndexDef
Delphi
TIndexDef = class(TNamedItem)
C++
class PASCALIMPLEMENTATION TIndexDef : public TNamedItem
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Data.DB.pas Data.DB.hpp |
Data.DB | Data.DB |
Description
TIndexDef describes an index in a database table.
Use the properties and methods of an index definition to:
- Set the attributes of a new index in a table created with TTable.CreateTable or TClientDataSet.CreateDataSet.
- Determine the name of an index.
- Identify the fields that make up the index or the dBASE expression that orders the index.
- Determine the characteristics of the index.
Note: You cannot use TIndexDef objects in a dataset component's IndexDefs property to add indexes to already existing tables. To do that, use methods such as TTable.AddIndex and TClientDataSet.AddIndex.
See Also