Home RAP

Set Color of Shapes based on Final Calculation Value with Look Ahead

edited November 2008 in RAP
Hi!

I have a TppDBCalc, with Look Ahead = True, dcSum of a DB Field, on a Group.

Well, I want to change the color of a Shape inside this Group, based on the
final calculation value.

Have tried :

If (DBCalcFieldSum1.Value >= 1000) Then Shape1.Brush.Color := clGreen;

Have tried on GroupAfterPrint, GroupBeforePrint, OnCalc, OnPrint, OnGetText,
nothing works...

Sure this is easy as it sounds...Have been using RB for 4 years, it's
incredible how I cannot figure it such an easy problem...

Thanks in advance!

Comments

This discussion has been closed.