RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseDataSetAdapterField.FindField Method

Returns the dataset field whose value this adapter field represents.

Pascal
function FindField: TField;
C++
__fastcall TField FindField();

Call FindField to access the field component for the dataset field that this adapter makes available to server-side scripts. 

FindField returns the field with the name specified by the DataSetField property from the dataset that is associated with the parent adapter. If DataSetField is an empty string, FindField returns nil (Delphi) or NULL (C++).

Note: Calling FindField can be more efficient than using the parent adapter to access the dataset and calling its FindField method. This is because TBaseDataSetAdapterField caches a reference to the field component when possible.
 

 

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