RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldDefList.Find Method

Returns a field definition object given its field name.

Pascal
function Find(const Name: WideString): TFieldDef; reintroduce;
C++
__fastcall TFieldDef Find(const BSTR Name);

Call Find to obtain information about a particular field definition object. Specify the name of the field as the value of the Name parameter. If Find finds a field with a matching name, it returns the TFieldDef component for the specified Name. Otherwise it returns nil (Delphi) or NULL (C++).

Note: Find differs from the FieldByName method only when the named field definition is not in the list. When the field definition is not found, Find returns nil (Delphi) or NULL (C++), while FieldByName raises an exception.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!