RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSet.ClearFields Method

Clears the contents of all fields for the active record.

Pascal
procedure ClearFields;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!