RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIndexDefs Class

TIndexDefs holds the list of available index definitions for a table.

Pascal
TIndexDefs = class(TDefCollection);
C++
class TIndexDefs : public TDefCollection;

TTable and TClientDataSet components use TIndexDefs to implement their IndexDefs property. These index definitions can be used to obtain information about the indexes defined for the underlying data or, when the component is used to create a table, to create the indexes of that table. 

Use the properties and methods of TIndexDefs to: 

Access a specific index definition. 

Determine how many index definitions this TIndexDefs object contains. 

Add or delete index definitions. 

Copy all index definitions from one TIndexDefs to another.

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 AddIndex.
 

 

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