Data.DB.TFields.FindField
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TFields |
Delphi
function FindField(const FieldName: string): TField;
C++
TField* __fastcall FindField(const System::UnicodeString FieldName);
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.