Page 1 of 1

Delphi 7, Firebird embedded, Zeos 6.6.2-RC

Posted: 23.05.2008, 00:01
by nostradumbass
I need to click the button twice to populate my DBGrid with data! What is wrong?

procedure TForm1.Button1Click(Sender: TObject);
begin
try
with ZQuery1 do
begin
Active:=true;
end
except
end;
end;

Posted: 23.05.2008, 00:19
by mdaems
Is this code also fired twice? No exception in case of the first click? Using FB 2.1 or 2.0?

There's a known problem with FB2.1 : Connect only succeeds 2nd time (I believe).

Mark

Posted: 23.05.2008, 04:40
by nostradumbass
That explains it! I am using 2.1..

Thanks.