totaling a variable
I'm trying to total or sum the value from a variable that's in a prior
group...any suggestions?
--- posted by geoForum on http://delphi.newswhat.com
group...any suggestions?
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
If you are trying to keep a grand total, you can place another TppVariable
at the location you would like to display this value and update it every
time another variable's OnCalc event fires. For instance, inside the OnCalc
of the variable located inside the prior group, you could code something
like this (in addition to the code already present)
...
TotalVariable.Value := TotalVariable + Value;
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com