RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTable.IndexName Property

Identifies a secondary index for the table.

Pascal
property IndexName: string;
C++
__property AnsiString IndexName;

Use IndexName to specify an alternative index for a table. If IndexName is empty, a table's sort order is based on its default index, or, for dBASE tables, on its physical record order. 

If IndexName contains a valid index name, then that index determines the sort order of records. For dBASE tables, an index name supplied to the IndexName property must either reside in the table's master index file, or in another index file already specified in the IndexFiles property.

Note: IndexFieldNames and IndexName are mutually exclusive. Setting one clears the other.
 

 

IndexFieldNames 

IndexFiles 

DefaultIndex 

Specifying a dBASE Index File 

Specifying the Data to Display using TSQLDataSet 

Using TTable

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