Recent

Author Topic: ZEOS 7 Incompatible types: 'TZConnection' and '  (Read 2141 times)

sidon

  • New Member
  • *
  • Posts: 13
ZEOS 7 Incompatible types: 'TZConnection' and '
« on: July 20, 2017, 08:21:16 pm »
Sorry! This question is about ZeosLib, I'm trying to post on ZL Forum but seems my IP's range is banned.

I have a system with zeos 6 in wich i use the following function:

function zIncCodeByYear (zQry : TZquery; ....): String;
var
  zConLocal, zConOriginal : TZConnection;
  ...
begin
  bActive := zQry.Active;
  zConOriginal :=  zQry.Connection;
   

This always worked fine, Now I need to convert this system to Delphi Seatle or Lazarus, consequently to Zeos trunk (7.2), after to install this version, in time compile, I get the error:

[dcc32 Error] zeosfuncs.pas(265): E2010 Incompatible types: 'TZConnection' and 'TZAbstractConnection'

What happens? how to get the connection from zquery in this version?

Zeos on lazarus works like on  Delphi?

paweld

  • Hero Member
  • *****
  • Posts: 970
Re: ZEOS 7 Incompatible types: 'TZConnection' and '
« Reply #1 on: July 20, 2017, 09:03:29 pm »
Code: Pascal  [Select][+][-]
  1. zConOriginal :=  TZConnection(zQry.Connection);
Best regards / Pozdrawiam
paweld

 

TinyPortal © 2005-2018