Subject | Re: [IBO] TIB_Components.pas Problem |
---|---|
Author | Andreas Pohl |
Post date | 2005-11-22T10:19:01Z |
Hallo Hans,
TIB_Statement.SysRestoreParamValueLinks it's a good idea to call
TIB_Query.OldParamValueLinks.Clear; in case of reusing of queries with
different parameters, e.g.
with IB_Query1 do begin
OldParamValueLinks.Clear;
if not Prepared then Prepare;
Params.BeginUpdate;
Params.ByName('von_tpl').AsDateTime:=DateTime1;
Params.ByName('bis_tpl').AsDateTime:=DateTime2;
Params.EndUpdate(true);
end;
I think SysRestoreParamValueLinks could be a published property of
TIB_Statement.
--
Andreas
> Boy, that took me a while, bald now, but I did find it :)right now I've got some trouble in this area, too...
> TIB_Components is throwing an address exceptionTo avoid such exceptions by calling
> in the procedure
> TIB_Statement.SysRestoreParamValueLinks;
TIB_Statement.SysRestoreParamValueLinks it's a good idea to call
TIB_Query.OldParamValueLinks.Clear; in case of reusing of queries with
different parameters, e.g.
with IB_Query1 do begin
OldParamValueLinks.Clear;
if not Prepared then Prepare;
Params.BeginUpdate;
Params.ByName('von_tpl').AsDateTime:=DateTime1;
Params.ByName('bis_tpl').AsDateTime:=DateTime2;
Params.EndUpdate(true);
end;
I think SysRestoreParamValueLinks could be a published property of
TIB_Statement.
--
Andreas