Search found 2 matches

by Miflon
05.12.2019, 11:26
Forum: Lazarus / Freepascal
Topic: Linking ZQuery & TDatasource by code
Replies: 7
Views: 513

Re: Linking ZQuery & TDatasource by code

Thanks jan for your advice.
All is working OK now.
Another question about the differences and benefits between creating ZQuery and DataSource by code or dropping these two components on the form?
Michel
by Miflon
03.12.2019, 14:29
Forum: Lazarus / Freepascal
Topic: Linking ZQuery & TDatasource by code
Replies: 7
Views: 513

Linking ZQuery & TDatasource by code

Hi everybody. In a form, i want to create and to link a ZQuery and a TdataSource programmatically. I write that code : R: TZQuery; S: TDataSource; begin R := TZQuery.Create(nil); S := TDataSource.Create(nil); R.Connection := FicheAccueil.ConnexionPQ; // ConnexionPG is dropped on "FicheAccueil&q...