Advantage TDataSet Descendant
Continues the locate command based on a previous call to AdsLocate.
function AdsContinue : Boolean;
AdsContinue continues searching for records that pass the condition specified in AdsLocate in the direction set by the AdsLocate function. If Result returns False, the table is positioned at EOF or BOF, depending on the direction of the AdsLocate.
AdsContinue performs a skip before evaluating the current record against the condition set in AdsLocate. It is unnecessary to explicitly call AdsSkip between an AdsLocate and an AdsContinue call or between successive AdsContinue calls.
Note Since each record is read from the server for comparison against the filter, it would be faster to use AdsSetFilter because the server would then perform the filtering.
procedure TForm1.LocateRowClick(Sender: TObject);
begin
{ find the first row where LastName equals Smith }
AdsTable1.AdsLocate( 'LastName = "Smith"', TRUE );
end;
procedure TForm1.LocateNextRowClick(Sender: TObject);
begin
{ find the next row where LastName equals Smith }
AdsTable1.AdsContinue;
end;