How to add a field in runtime


2003-11-27 02:44:15 AM
cppbuilder91
I'm trying to add a calculated, bolean field in a TmySQLTable (this class is
like TDataSet) in runtime.
TmySQLTable *myTab = new TmySQLTable(this);
myTab->Name="myTab_"+IntToStr(i);
myTab->Database=mySQLDb;
myTab->TableName=Table_w->Strings[i];
myTab->Fields->Add(??????);
Does anyone can help me with that?
Thx in advance