Icon CreateField Method

Db::TField* __fastcall CreateField(Classes::TComponent* Owner,
      Db::TObjectField* ParentField = (Db::TObjectField*)(0x0), const
      AnsiString FieldName = "", bool CreateChildren = true)

Call the CreateField method to create an appropriate TField descendant component for the current field definition.

The only necessary parameter to this method is the Owner parameter, which is usually the form or data module that is creating the field components. The rest of the parameters can be left as the default values.
Image