Icon CreateField Method

Data::Db::TField* __fastcall
      CreateField(System::Classes::TComponent* Owner,
      Data::Db::TObjectField* ParentField =
      (Data::Db::TObjectField*)(0x0), const System::UnicodeString
      FieldName = System::UnicodeString(), 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