EPUB | CHM | PDF

TDataSet.Methods.ClearFields

Top Previous Next

Clears the contents of all fields for the active record.

Syntax:

procedure ClearFields;

Description:

Call ClearFields to erase the current contents of all fields for the active record. If the dataset is not in either dsInsert or dsEdit state, ClearFields raises an exception.

If a SetKey operation is not under way, ClearFields recalculates all calculated fields, and generates an OnDataChange event on the data source component associated with the dataset.