Sign in Join
FPDoc Onlineexperiment

TDataSet.FieldByName function

Member of TDataSetpublicIn unit DB

Search a field by name.

Declaration

pascal
function FieldByName(const FieldName: string): TField

Arguments

FieldName

Fieldname to look for.

Function result

Field instance matching FieldName.

Description

FieldByName is a shortcut for Fields.FieldByName: it searches for the field with fieldname equalling FieldName. The case is performed case-insensitive. The matching field instance is returned.

Errors

If the field is not found, an EDatabaseError exception will be raised.

See also

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