RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DB.GetFieldProperty Function

Returns a TField object for a dataset and data control.

Pascal
function GetFieldProperty(DataSet: TDataSet; Control: TComponent; const FieldName: string): TField;
C++
TField GetFieldProperty(TDataSet DataSet, TComponent * Control, const AnsiString FieldName);

GetFieldProperty returns a reference to a field given the dataset component that contains the field, the data-aware control that accesses the field, and the field name. GetFieldProperty returns a value of type TField

DataSet is the dataset component containing the field. 

Control is the data-aware control that accesses the field. 

FieldName is the name of the field for which to return a TField

 

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