Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show rows in different colors
Message
From
05/09/2008 09:08:05
 
 
To
05/09/2008 08:55:58
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345102
Message ID:
01345111
Views:
12
Hi Jay,

Simply put something like this in your Form.Init


Thisform.Grid1.SetAll ([DynamicBackColor], [IIF(MOD(RECNO(),2) = 0, RGB(128,128,128), RGB(255,255,255))], [Column])


UPDATE: Forget about it. Didn't see that you asked for REPORT.

>What's that little trick using the recno() and MOD (I think) to do something to every other row in a report? How would I apply that to changing the colors of the background box? Would I need to have two boxes and use the Print When for each?
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform