TurboDB VCL Component Library

TTdbTable.SetKey

TTdbTable        See also

Previous  Top  Next

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

Delphi syntax:

procedure SetKey;

C++ syntax:

void __fastcall SetKey(void);

Description

Call SetKey to put the dataset into dsSetKey state and clear the current contents of the key buffer. The FieldByName method can then be used to supply a new set of search values prior to conducting a search.

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