RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIndexDef Class

TIndexDef describes an index in a database table.

Pascal
TIndexDef = class(TNamedItem);
C++
class TIndexDef : public TNamedItem;

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.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!