Datasnap.DBClient.TCustomClientDataSet.SetKey

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TCustomClientDataSet

Delphi

procedure SetKey;

C++

void __fastcall SetKey();

Description

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

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 with a new set of values prior to conducting a search.

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

See Also