Subject [firebird-support] Re: delphi and firebird, instruction with... do (off topic)
Author Maya Opperman
This is a bit off topic (strictly Delphi syntax actually) but to help
you out quickly, this is not what a WITH statement is for.

>>with ibdataset1, ibdataset2 do end;

If the 2 objects have the same property name, then only the 2nd object
will be used.

WITH statements (especially with 2 references) is generally dangerous as
you are never sure which object (if any) is actually being used just by
glancing at the code.

Suggest you rather write a sub-routine to save on the duplicated code,

UpdateDataset(IBDataset1, Dataset);

UpdateDataset(IBDataset2, Dataset);


[Non-text portions of this message have been removed]