Change Variable in Detail.beforeprint
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
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
This discussion has been closed.
Comments
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