Data.DB.TFields.FindField
Delphi
function FindField(const FieldName: string): TField;
C++
TField* __fastcall FindField(const System::UnicodeString FieldName);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TFields |
Description
Returns a field given its field name.
Call FindField to determine if a specified field component is referenced in the TFields object. FieldName is the name of the field for which to search. If FindField finds a field with a matching name, it returns the TField component for the specified field. Otherwise it returns nil (Delphi) or NULL (C++).
Note: FindField differs from the FieldByName method only when the named field is not in the list. When the field is not found, FindField returns nil (Delphi) or NULL (C++), while FieldByName raises an exception.