Subject AW: [IBO] Sub-Selects and calculated fields
Author Herbert Senner
Helen and Geoff,
in fact applying your changes resolved the problem.
Thanks.
Herbert Senner


-----Ursprungliche Nachricht-----
Von: Geoff Worboys (TeamIBO) [mailto:geoff@...]
Gesendet: Dienstag, 19. Februar 2002 01:15
An: Herbert Senner
Betreff: Re: [IBO] Sub-Selects and calculated fields

I think this is probably a result of a bug in 4.2.Fr (and Fp).

In IBA_Dataset.IMP...

procedure TIB_Dataset.KeyToChildAction( AAction: TIB_KeyChildAction;
Info: longint );
<...>
ADataset.Prepare;
//TIB_Row( Info ).Values[ tmpVals ] :=
// TIB_BDataset( ADataset ).Lookup(
// tmpKeyVals,
// TIB_Row( Info ).Values[ tmpKeyFlds ], tmpFlds );
TIB_Row( Info ).Values[ tmpVals ] :=
TIB_BDataset( ADataset ).Lookup(
tmpKeyFlds,
TIB_Row( Info ).Values[ tmpKeyVals ], tmpFlds );
<...>
end;


It is just that the tmpKeyFlds and tmpKeyVals were reversed in the
call the Lookup. Apply the above change and rebuild IBO and think
that should resolve your problem.


--
Geoff Worboys - TeamIBO
Telesis Computing