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;

DB

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.  

 

TIndexDefs 

IndexDefs 

TTable 

AddIndex 

TCustomClientDataSet 

Creating and Deleting Tables

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!