[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'db' (#fcl)

# TDataSet.ClearFields

Clear the values of all fields

## Declaration

Source position: db.pas line 1579

`public procedure TDataSet.ClearFields;`

## Description

ClearFields clears the values of all fields.

## Errors

If the dataset is not in editing mode (State in dsEditmodes), then an EDatabaseError exception will be raised.

## See also

TDataset.State |  | Current operational state of the dataset
TField.Clear |  | Clear the field contents.

Documentation generated on: Feb 26 2014