From RAD Studio API Documentation
Jump to: navigation, search


property IndexDefs: TIndexDefs read FIndexDefs write FIndexDefs;


__property Data::Db::TIndexDefs* IndexDefs = {read=FIndexDefs, write=FIndexDefs};


Type Visibility Source Unit Parent
property public
Data.SqlExpr TCustomSQLDataSet


Contains the definitions of all indexes defined on the server for the dataset.

Read IndexDefs to obtain information about what indexes are available on the database server for this dataset.

TCustomSQLDataSet does not explicitly use the information in IndexDefs. The order of its records is determined by the ORDER BY clause of its SQL statement.

If the SQL dataset is an instance of TSQLTable, you can use IndexDefs to identify the index to use for the IndexName property. Even with other TCustomSQLDataSet descendants, IndexDefs can be useful for composing SQL commands dynamically that need to use an index on the server. For example, provider components use the index information to uniquely identify records when composing update commands.

See Also