Data.DB.TFieldDefs.Find

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Find(const Name: string): TFieldDef;

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 TFieldDefs

Description

Returns a field definition, given the name of the field.

Call Find to obtain information about a particular field definition. Specify the name of the field as the value of the Name parameter.

If no matching field is found, Find raises an exception. The IndexOf method (inherited from TDefCollection) can be used to determine if the field exists first before calling Find. If IndexOf returns a value greater than –1, the TFieldDef exists and Find can be used.

See Also