Specifying an alternative index with IndexName
Go Up to Sorting records
To specify that a table should be sorted using an alternative index, specify the index name in the table component’s IndexName
property. At design time you can specify this name in the Object Inspector, and at runtime you can access the property in your code. For example, the following code sets the index for CustomersTable
to CustDescending
:
CustomersTable.IndexName := 'CustDescending';