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

totaling a variable

edited April 2006 in General
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

Comments

  • edited April 2006
    Hi,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.