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

TDataSet.FindField

Find a field by name

Declaration

Source position: db.pas line 1304

public function TDataSet.FindField(

  const FieldName: String

):TField;

Arguments

FieldName

  

Fieldname to look for.

Function result

Field instance matching FieldName

Description

FindField is a shortcut for Fields.FindField: it searches for the field with fieldname equalling FieldName. The case is performed case-insensitive. The matching field instance is returned, and if no match is found, Nil is returned.

See also

TDataset.FieldByname

  

Search a field by name

TFields.FindField

  

Find a field based on its name

The latest version of this document can be found at lazarus-ccr.sourceforge.net.