TAdsTable.AdsSeekLast

Advantage TDataSet Descendant

Seeks for the last value in an index.

Syntax

function AdsSeekLast( strKey : String ) : Boolean;

Parameter

strKey

Search key.

Description

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.

Example

AdsTable1.IndexName := ‘LastName’;

bFound := AdsTable1.AdsSeekLast( ‘Smith’ );

See Also

AdsSeek