Subject | Re: [firebird-support] Re: delphi and firebird, instruction with... do |
---|---|
Author | Magnus Titho |
Post date | 2006-05-15T15:39:08Z |
Geomastique wrote:
(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
> would be helpful to see what these things are that you're trying to doWould only work if ibdataset2 was a property of ibdataset1
> with both datasets!
> ----------------------------------
>
> OK :
> code delphi on the event "afterscroll" of a master ibdataset :
>
> with ibdataset1, ibdataset2 do
>
(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