I'm using Delphi5 and Delphi2007 + Firebird2.1 + ZEOS6.6.6 Stable
I have a DLL written in Delphi2007 that makes a call of a stored procedure with resultset
Code: Select all
with dm.zspGETLCIDSTRING do
begin
//close;//this position doesn't work
ParamByName('LCID').AsInteger := ALCID;
ParamByName('IDSTRING').AsInteger := AIDString;
try
open;
S := dm.dsGETLCIDSTRING.DataSet.FieldByName('STRING').AsString;
close; //this position works
except
dm.zcDB.Rollback;
end;
dm.zcDB.Commit;
end;
In some code examples there is the Close above Open.
Has anyone any idea what is wrong?