Data.DB.TDataSet.ClearFields

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSet

Delphi

procedure ClearFields;

C++

void __fastcall ClearFields();

Description

Clears the contents of all fields for the active record.

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.

See Also