Sign in Join
FPDoc Onlineexperiment

TField.AssignValue procedure

Member of TFieldpublicIn unit DB

Assign value of a variant record to the field.

Declaration

pascal
procedure AssignValue(const AValue: TVarRec)

Arguments

AValue

Value to assign to the field.

Description

AssignValue assigns the value of a "array of const" record AValue (of type TVarRec) to the field's value. If the record contains a TPersistent instance, it will be used as argument for the Assign to the field.

The dataset must be in edit mode to execute this method.

Errors

If the AValue contains an unsupported value (such as a non-nil pointer) then an exception will be raised. If the dataset is not in one of the edit modes, then executing this method will raise an EDatabaseError exception.

See also

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