Incompatible types: 'TZConnection' and 'TZAbstractConnection'
Posted: 13.02.2019, 03:09
I have the following funtion working in Delphi2010 with zeos 6.6.5
Now I'm migrating to Delphi Tokyo with zeos 7.2.4 and i get the followin error when i try to compile
[dcc32 Error] zeosfuncs.pas(267): E2010 Incompatible types: 'TZConnection' and 'TZAbstractConnection'
[dcc32 Fatal Error] Myfuncs.pas(162): F2063 Could not compile used unit 'zeosfuncs.pas'
Any Help?
Thanks!
Code: Select all
function zIncCodeByYear
(zQry : TZquery; sCampo : string; iDigit : ShortInt = 8 ): String;
var
zConLocal, zConOriginal : TZConnection;
begin
bActive := zQry.Active;
zConOriginal := zQry.Connection;
...
[dcc32 Error] zeosfuncs.pas(267): E2010 Incompatible types: 'TZConnection' and 'TZAbstractConnection'
[dcc32 Fatal Error] Myfuncs.pas(162): F2063 Could not compile used unit 'zeosfuncs.pas'
Any Help?
Thanks!