Data.DB.TFieldList.Find

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Find(const Name: string): TField; reintroduce;

C++

HIDESBASE TField* __fastcall Find(const System::UnicodeString Name);

Properties

Type Visibility Source Unit Parent
function public
Data.DB.pas
Data.DB.hpp
Data.DB TFieldList

Description

Returns a field component given the field name.

Call Find to determine if a specified field component is referenced in the TFieldList object. FieldName is the name of the field for which to search. If Find 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: Find differs from the FieldByName method only when the named field is not in the list. When the field is not found, Find returns nil (Delphi) or NULL (C++), while FieldByName raises an exception.

See Also