Lazarus

Programming => Packages and Libraries => Ported from Delphi/Kylix => Topic started by: Mishel on December 13, 2004, 12:56:46 pm

Title: access to database
Post by: Mishel on December 13, 2004, 12:56:46 pm
I use Datamodule with UIBDataBase and a Form with UIBDataSet. I can't receive access from DataSet do DataBase. Please  advise.
Title: access to database
Post by: jesusr on December 17, 2004, 06:14:10 am
Can you please fill a bug report?, so this problem doesn't get forgoten
Title: access to database
Post by: matthijs on January 02, 2005, 08:32:42 pm
The same problem is there under Linux. When using a datamodule with a MySQLDatabase and MySQLDataset and adding the datamodule to the uses clause, you still cannot get to it. The following works all right:
Code: [Select]

procedure TForm1.Button1Click(Sender: TObject);
begin
  DataModule1.MySQLDatabase1.Open;
  DataModule1.MySQLDataset1.Open;
end;

procedure TForm1.Form1Create(Sender: TObject);
begin
  Datasource1.DataSet := DataModule1.MySQLDataset1;
end;
TinyPortal © 2005-2018