unit db should be automatically added to the uses clause when a dataset is used.
Original Reporter info from Mantis: Thaddy
-
Reporter name: Thaddy de Koning
Original Reporter info from Mantis: Thaddy
- Reporter name: Thaddy de Koning
Description:
Unit db should be automatically added to the uses clause when a dataset is used.
It isn't... It's needed for e.g. TFieldtype.
Steps to reproduce:
Create new project. Add datasource, add BufDataset, connect the two.
In the formcreate do:
procedure TForm1.FormCreate(Sender: TObject);
begin
BufDataSet1.FieldDefs.Add('NAME',ftString,20);
BufDataSet1.CreateDataset;
BufDataSet1.Open;
end;
Compile. Doesn't work. ftString is not recognized.
Add db to the uses clause by hand and it works.