RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.Locate Method

Positions the associated dataset on the record identified by the LocateParamsList property.

Pascal
function Locate: Boolean;
C++
__fastcall Boolean Locate();

Locate tries to position this adapter's dataset, and the dataset of any adapter linked to this one in a master/detail relationship, to the record identified by the key fields that the LocateParamsList property lists. 

Locate returns true if it successfully positions all datasets on the specified record. Locate returns false if it was unable to position one or more datasets on the specified record. If Locate returns false, it adds a message to the Errors property describing the problem. 

 

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