Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetAll
Message
From
09/11/1998 14:56:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SetAll
Miscellaneous
Thread ID:
00155889
Message ID:
00155889
Views:
62
I'm trying to set the text color in grid rows to certain colors depending on a particular criteria. SetAll works fine, but I'm having problems determining how to set more than two colors. I have the following code in the grid refresh and it works fine, but I have more than two "types" (see code) all of which I need in their own color.

lcColorSpec = 'IIF(ALLTRIM(type)=="Pending",255,0)'
This.SetAll("DynamicForeColor", lcColorSpec, "Column")

So, what I'd like to do is to use something like SetAll to make it quick, but need to be able to evaluate each row in the grid individually and set the text forecolor to the appropriate color.

Any suggestions?

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform