Advantage TDataSet Descendant
Determines if the given index order is descending.
function AdsIsIndexDescending : Boolean;
A descending index has keys sorted in the order of largest to smallest. The default is an ascending index. An AdsGotoTop on a descending order will position at the largest key in the index. An AdsGotoBottom will position at the smallest key in the index order.
AdsTable1.Exclusive := TRUE;
AdsTable1.Active := TRUE;
AdsTable1.AdsCreateIndex( '', 'Tag1', 'FirstName', '', '', [ optDESCENDING ] );
AdsTable1.IndexName := ‘Tag1’;
bIsDescending := AdsTable1.AdsIsIndexCustom;