Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Problem with Pipeline.OnRecordChange ...

edited August 2002 in General
ok, this is a strange problem ....
I'm using D6 + RB6.03 + MySQL + MyODBC ....

I have a table with 4 records and I need to do a complex calculation
with some of their values so, I put my formulas in
Pipeline.OnRecordChange, but my calculation always went wrong!!!!

While debbuging I noted that, having only 4 records, the event
OnRecordChange fired several more times!!!! so, my calculation always
failed !!!

Any help will be very appreciated :)
Thanks in advance

Luis Ximénez

Comments

  • edited August 2002
    Yes, it will fire when the datapipeline traverses- the pipeline traverses
    forwards and backwards as the report generates. You can either place a
    check in the calculation code to only calculate when the records position
    increases, or use a TppVariable and use its OnCalc evnet. This event is
    guaranteed to fire only once per record by default.

    --
    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.