Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor in grid question
Message
From
28/08/2000 15:08:30
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00409939
Message ID:
00409942
Views:
26
>I would like to highlight rows in a grid based on a status field in the view. Right now i can set the background color for just one 'situation' but not multiple. For example, i would like to show PaidInFull rows in green, payment greater than zero (but not in full) in yellow, and where not paid at all in pink. I can do this for just one situation but not for all three.
>
>Can anyone suggest a technique?
>
>------------------------------------------
>i use the following to set the background:
>------------------------------------------

Just use nested IIF()s
thisform.pgfpagerefresh1.page1.grdnav.setall('DynamicBackColor', ;
		'IIF(v_view.totpaid = 0, ;
		rgb(255,128,128),;
                <b>IIF(v_view.totpaid>0 and !v_view.paidinfull, rgb(0,255,0), rgb(255,255,255))</b>)', ;
		'COLUMN')
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform