Subject Re: [firebird-support] Re: delphi and firebird, instruction with... do
Author Magnus Titho
Geomastique wrote:
> would be helpful to see what these things are that you're trying to do
> with both datasets!
> ----------------------------------
>
> OK :
> code delphi on the event "afterscroll" of a master ibdataset :
>
> with ibdataset1, ibdataset2 do
>
Would only work if ibdataset2 was a property of ibdataset1
(and this has really nothing to do with FB).
Make a procedure and pass the databases as a parameter:

procedure DoSomething(const ADB: TIBDatabase);
begin
ADB.Close;
ADB.ParamByName(..)
ADB.Prepare;
ADB.Open;
end;


DoSomething(ibdatabase1);
DoSomething(ibdatabase2);


--
Magnus