Data.DB.TFieldList.Find
Delphi
function Find(const Name: string): TField; reintroduce;
C++
HIDESBASE TField* __fastcall Find(const System::UnicodeString Name);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Data.DB.pas Data.DB.hpp |
Data.DB | TFieldList |
Description
Renvoie le composant champ du nom spécifié.
Appelez Find pour déterminer si un composant de champ spécifié est référencé dans l'objet TFieldList. FieldName est le nom du champ qu'on cherche. Si Find trouve un champ avec un nom correspondant, elle renvoie le composant TField pour le champ spécifié. Sinon, elle renvoie nil (Delphi) ou NULL (C++).
Remarque : Find diffère de la méthode FieldByName seulement quand le champ nommé n'est pas dans la liste. Quand le champ est introuvable, Find renvoie nil (Delphi) ou NULL (C++) tandis que FieldByName déclenche une exception.