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