Data.DB.TFieldDefs.Find

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TFieldDefs

Delphi

function Find(const Name: string): TFieldDef;

C++

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

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