On calc firing multiple times per record?
?I have a report with a group that I "keep together". I put a show message in the report for
diagnostic purposes. The 2 records from one group fires the event oncalc twice before the end of
the page. (I guess it figures out that it won't fit on the page so doesn't print it) and twice again
when calculating the next page. I'm viewing the report (to screen) so I know the order that things
are happening in. I tried this in a hidden variable field and on a dbcalc field (both in ongettext and
oncalc) with the same results. So how do I do this? I running a function that calculates a value
and I'm sure the function is looking at the correct record. This shouldn't be rocket science.
Thanks.
--- posted by geoForum on http://delphi.newswhat.com
diagnostic purposes. The 2 records from one group fires the event oncalc twice before the end of
the page. (I guess it figures out that it won't fit on the page so doesn't print it) and twice again
when calculating the next page. I'm viewing the report (to screen) so I know the order that things
are happening in. I tried this in a hidden variable field and on a dbcalc field (both in ongettext and
oncalc) with the same results. So how do I do this? I running a function that calculates a value
and I'm sure the function is looking at the correct record. This shouldn't be rocket science.
Thanks.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
of
things
and
--- posted by geoForum on http://delphi.newswhat.com
For future reference, please use your real name when posting to these
groups.
Be sure your TppVariable is of a numerical type before making calculations.
The String type variable will behave slightly different as far as the timing
of the OnCalc event.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com