RAD Studio VCL Reference
TDataSet.ClearFields Method

Clears the contents of all fields for the active record.

procedure ClearFields;
__fastcall ClearFields();

Call ClearFields to erase the current contents of all fields in 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. 


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