Sign in Join
FPDoc Onlineexperiment

TParam.AssignFromField procedure

Member of TParampublicIn unit DB

Copy field type and value.

Declaration

pascal
procedure AssignFromField(Field: TField)

Arguments

Field

Field to copy type and value from.

Description

AssignFromField copies the field value and data type ( DataType) to the parameter instance. If Field is Nil, nothing happens. This is the reverse operation of AssignToField.

Errors

An EDatabaseError exception is raised if the field has an unsupported field type (for types ftCursor, ftArray, ftDataset,ftReference).

See also

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