On 5/30/07, Garrett Fitzgerald <[EMAIL PROTECTED]> wrote:
> On 5/29/07, Stephen the Cook <[EMAIL PROTECTED]> wrote:
> > How
> > do you show a negative number in the color red in a fox report?
>

Actually, I don't want to show them in red, I want parentheses.

DEFINE CLASS RedNeg AS ReportListener
        ListenerType = 1
        
        PROCEDURE EvaluateContents
                LPARAMETERS tnFRXRecno, toObjProperties
                
                WITH toObjProperties
                        IF VAL(.Text) < 0
                                .Text = "(" + TRANSFORM(ABS(VAL(.Text))) + ")"
                                
                                .Reload = .T.
                        ENDIF
                ENDWITH
        ENDPROC
ENDDEFINE

Three-line change in VFP9. How long does it take to do that in CR?
With, say, 15 currency objects?


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to