Data.DB.TFieldDefList.Find
Delphi
function Find(const Name: string): TFieldDef; reintroduce;
C++
HIDESBASE TFieldDef* __fastcall Find(const System::UnicodeString Name);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TFieldDefList |
Description
Returns a field definition object given its field name.
Call Find to obtain information about a particular field definition object. Specify the name of the field as the value of the Name parameter. If Find finds a field with a matching name, it returns the TFieldDef component for the specified Name. Otherwise it returns nil (Delphi) or NULL (C++).
Note: Find differs from the FieldByName method only when the named field definition is not in the list. When the field definition is not found, Find returns nil (Delphi) or NULL (C++), while FieldByName raises an exception.