Sign in Join
FPDoc Onlineexperiment

TDataSet.SetFields procedure

Member of TDataSetpublicIn unit DB

Set a number of field values at once.

Declaration

pascal
procedure SetFields(const Values: Array of const)

Arguments

Values

Values to save in fields.

Description

SetFields sets the values of the fields with the corresponding values in the array. It starts with the first field in the Fields property, and works it's way down the array.

Errors

If the dataset is not in edit mode, then an EDatabaseError exception will be raised. If there are more values than fields, an EListError exception will be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.