I am using stable version of ZEOS 6.6.4 for Lazarus with Firebird 2.1 stable (embedded). I have TZConnection (=ZCon1) and a TZQuerry (=ZQ1) both created at design time. Further I have a TMemo (=Memo1) to write some SQL statements and a Button (=Button1) to submit and execute with the following code:
Code: Select all
procedure TForm1.Button1Click(Sender : TObject);
begin
ZCon1.Connect;
ZQ1.SQL.Clear;
ZQ1.SQL.Text := Memo1.Text;
if not ZQ1.Active then ZQ1.Active := True;
lblSelRecCount.Caption := IntToStr(ZQ1.RecordCount);
lblSelActRecNr.Caption := IntToStr(ZQ1.RecNo);
lblRecSize.Caption := IntToStr(ZQ1.RecordSize);
ZQ1.ExecSQL;
ZCon1.Disconnect;
end;
"Project raised exception class 'EZSQLException' with message: Cannot retrieve Resultset data"
I am not very familar with ZEOS or SQL. So could someone give me an idea what the cause is for this exception ?
Cocky
(P.S. my english skills are also poor )