RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomClientDataSet.SetKey Method

Enables setting of keys and ranges for a dataset prior to a search.

Pascal
procedure SetKey;
C++
__fastcall SetKey();

Call SetKey to put the dataset into dsSetKey state and clear the current contents of the search key buffer. Use FieldByName to supply the buffer then with a new set of values prior to conducting a search.

Note: To modify an existing key or range, call EditKey.
 

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