Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting changed records in a grid
Message
From
20/06/1998 19:07:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/06/1998 09:56:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00105492
Message ID:
00110292
Views:
29
>
>This only picks up the red - no green. :(
>
>It seems I can do one or the other but not both.
>
>Any suggestions?

I've tried this:
dime naColors(3)
naColors(1)=rgb(255,255,255)
naColors(2)=rgb(255,255,127)
naColors(3)=rgb(255,144,255)

and later, in the grid

.dynamicbackcolor="naColors(nColorCode)"

In my case, the nField always has valued 1 to 3; in your case, you may be using a cursor where an additional field nColorCode may be added to contain just such numbers, like this:

replace all nColorcode with IIF(alias.changed, 2, IIF(alias.rdelete, 3, 1))

Of course, you may use your colors. In my case it worked real nice and fast (and my video card is just a S3 Trio, no particular champion of speed).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform