procedure TForm1.Button1Click(Sender: TObject);
var
tt:TIntegerField;
begin
query1.close;
tt:=TIntegerField.Create(self);
tt.FieldName := 'Test1' ;
tt.FieldKind:=fkCalculated;
tt.DataSet:=query1;
query1.active:=true;
if query1.Fields[1].DataType=ftString then
showmessage('ftString'+inttostr(query1.Fields[1].datasize));
end;