RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DRIntf.CreateField Function

Creates a new field from information stored in the Data Dictionary.

Pascal
function CreateField(Owner: TComponent; Dataset: TDataset; const FullName: string; const Origin: string; const FieldID: TFieldID; const AttrID: TAttrID): TField;
C++
TField CreateField(TComponent * Owner, TDataset Dataset, const AnsiString FullName, const AnsiString Origin, const TFieldID FieldID, const TAttrID AttrID);

DRIntf

Call CreateField to create a field component based on the information in the Data Dictionary. 

The Owner parameter specifies the component responsible for freeing the field. 

The Dataset parameter specifies the dataset that includes the field component. 

The FullName and Origin parameters specify the values of the field component's properties of the same names. Origin can be an empty string. 

The FieldID and AttrID parameters specify the field in the field dictionary and an attribute set to use when creating the field. Both can be 0. If FieldID is specified and AttrID is not, the attribute set associated with FieldID is used. 

 

TField 

TField 

TField 

AssociateAttr 

FindFieldID 

FindAttrID 

GetControlclass 

The Data Dictionary

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