OnCalculateField Event

Applies to
TIB_Statement

Declaration
TIB_RowFieldEvent = Procedure(Sender: TIB_Statement; ARow: TIB_Row; AField: TIB_Column ) of object;

Description
Event where code can be placed to provide values for the fields created as a result of entering specifications in the CalculatedFields property.

It is very improtant that the calculations be done in the context of the IB_Row parameter which is passed into the event. Otherwise, you could be basing calculations for one row using data from another row.

This is possible because IBO handles lots of different row types, especially when working with the buffered datasets.