If there is no defined index that implements the sort order you want, you can create a pseudo-index using the IndexFieldNames property.
The following code sets the sort order for PhoneTable based on LastName, then FirstName:
PhoneTable.IndexFieldNames := 'LastName;FirstName';
PhoneTable->IndexFieldNames = "LastName;FirstName";
Obtaining Information About Indexes
Specifying an Index with IndexName
IndexFieldNames
IndexFieldNames
IndexFieldNames
IndexFieldNames
IndexFieldNames
IndexFieldNames
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|