Home RAP

Change Variable in Detail.beforeprint

edited July 2008 in RAP
I have a TppVariable of DataType Currency in a DetailBand of a subreport.
Because it is a financial report, Liability, Capital and Income accounts
should print with the sign reversed.but without altering any of the other
calculations into which it accums. I have tried creating a RAP event using
the DetailBand.OnPrint with

varMonth.value := -varMonth.value

but I get an AV. Same problem if I instantiate an event in the .pas unit.

can you help?

thanks,

Sher

Comments

  • edited July 2008
    As a quick work around try

    varMonth.value := -1 * varMonth.value;

    I can duplicate the AV here and will research it.

    --
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.