RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.LocateKeyParams Method

Positions the dataset based on a specified set of field values.

Pascal
function LocateKeyParams(AParams: IKeyParams): Boolean;
C++
__fastcall Boolean LocateKeyParams(IKeyParams AParams);

All other methods that position the associated dataset on a specified record call LocateKeyParams (directly or indirectly) to move to the specified record. 

AParams is an interface from which to obtain the names and values of dataset fields to use when locating the desired record. 

LocateKeyParams returns true if it successfully positions the dataset on the specified record, false if it was unable to perform this task. 

This method generates a call to the associated dataset's Locate method, based on the field values specified using AParams. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!