TMedTable.SetKey TMedTable

procedure SetKey;

Description

Use SetKey to change dataset state into dsSetKey state and clear the current contents of the key buffer. Use FieldByName method to define new set of search values before continuing a search.

See TTable.SetKey for more details.

Example:

tab.SetKey;

tab.FieldByName('ProdClass').AsString := 'FOTO';

GotoNearest;