IndexFieldName, it's just only Temporary index you cannot put "desc" like
that you just only can define
ClientDataset.IndexFieldNames := 'FieldA' and they will automatically sort
data in ascending for you.
If you want to sort in descending you need to create Persitent Index, it
will be like:
with ClientDataset.IndexDefs.AddIndexDef do
begin
Name := 'MyIdxA';
Fields := 'FieldA';
Options := [ixDescending];
end;
ClientDataset.IndexName := 'MyIdxA';
Regards
Kittipong Kiatcheeranun
You will need to use the AddIndex method to create a new index
--
Brian Bushay (TeamB)
Bbu...@NMPLS.com