Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid dynamicbackcolor
Message
 
To
19/07/1999 10:25:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00243080
Message ID:
00243094
Views:
42
>I have a grid with recordsource coming from a sql statement into a table. I'm trying to get dynamicbackcolor to alternate colors with a mod statement but the colors don't alternate. what is the best way to do this?

This one alternates colors based upon MOD(), and also does so based upon a field value, so you can trim it down as needed.

IIF(BACKUPTYPE = 'B', IIF(MOD(RECNO(), 2) = 1, RGB(215,252,255), RGB(183,250,255)), IIF(MOD(RECNO(), 2) = 1, RGB(253,254,194), RGB(253,255,176)))
Ken Sorce
Team RAD, Inc.
Rapid Application Developers
Ken@TeamRAD.com
www.teamrad.com
Previous
Reply
Map
View

Click here to load this message in the networking platform