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

Reset the Group Totals with a Value:

edited November 2004 in Datapipelines
I have two GroupTotals and need to change the after the group breaks. i.e;

if ppDBCalc1 > ppDBCalc2 then
ppDBCalc1 := ppDBCalc1-ppDBCalc2
else
ppDBCalc2 := ppDBCalc2-ppDBCalc1

In event and how can I do this ?

Thanks In Advance

Thatchi
~~~~~~~~

Comments

  • edited November 2004
    Hi Thatchi,

    Usually when making calculations of this sort, it is best to use
    TppVariables exclusively, however if you would like to alter the values of
    the TppDBCalc components you will need to at least use one TppVariable for
    its OnCalc event and to be used as the final output. Something like the
    following.

    if ppDBCalc1.Value > ppDBCalc2.Value then
    ppVariable1.Value := ppDBCalc1.Value - ppDBCalc2.Value
    else
    ....

    --
    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.