Extraído de la documentación:
5.4 How can I sort the display of the records differently?
You need to add an index that sorts the records in the order you want.
This is done using:
Dbf1. AddIndex('INDEX1 ', 'DTOS( FIELD1 ) ', []);
Dbf1. IndexName := 'INDEX1 ';
where INDEX1 is the name of the index you created using AddIndex.
The index can be deselected by selecting the empty name index:
Dbf1. IndexName := '';
|