Data.DB.TFieldDefList.Find
Delphi
function Find(const Name: string): TFieldDef; reintroduce;
C++
HIDESBASE TFieldDef* __fastcall Find(const System::UnicodeString Name);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TFieldDefList |
Description
Renvoie l'objet définition de champ du nom spécifié.
Appelez la méthode Find pour obtenir des informations sur un objet de définition de champ particulier. Spécifiez le nom du champ comme la valeur du paramètre Name. Si Find trouve un champ avec un nom correspondant, elle renvoie le composant TFieldDef pour le nom spécifié. Sinon, elle renvoie nil (Delphi) ou NULL (C++).
Remarque : Find diffère de la méthode FieldByName seulement quand la définition de champ nommée n'est pas dans la liste. Quand la définition de champ est introuvable, Find renvoie nil (Delphi) ou NULL (C++) tandis que FieldByName déclenche une exception.