RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldDefs.Find Method

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

Pascal
function Find(const Name: string): TFieldDef;
C++
__fastcall TFieldDef Find(const AnsiString Name);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!