Advantage TDataSet Descendant
Seeks for the last value in an index.
function AdsSeekLast( strKey : String ) : Boolean;
|
strKey |
Search key. |
AdsSeekLast will perform a seek for the last key in the indicated index order that matches the passed in search key. If the key is not in the index, the function will position the table at EOF and set the found flag to False.
AdsTable1.IndexName := ‘LastName’;
bFound := AdsTable1.AdsSeekLast( ‘Smith’ );