Delphi 2010 + mySQL 5 :
Posted: 03.10.2010, 16:48
Dear all,
It seems there is a problem with the ZQuery.ParamByName().AsString function. The following code that before worked ok with Delphi 7 does not work any more with Delphi 2010 :
It makes an error. In fact, the value of ZQuery1.ParamByName('PROFIL') is equal to ''.
But the following code works ok.
How to fix this problem ?
Wilco
How to resolve this problem
thank you for help
It seems there is a problem with the ZQuery.ParamByName().AsString function. The following code that before worked ok with Delphi 7 does not work any more with Delphi 2010 :
Code: Select all
ZQuery1.SQL.Add('select * from param where PROFIL = :PROFIL');
ZQuery1.ParamByName('PROFIL').AsString := 'TOUS';
ZQuery1.Open;
But the following code works ok.
Code: Select all
ZQuery1.ParamByName('PROFIL').Value
Wilco
How to resolve this problem
thank you for help