Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show rows in different colors
Message
From
05/09/2008 09:10:56
 
 
To
05/09/2008 09:09:28
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:
01345117
Views:
12
Right. Didn't see that in time ... where is my espresso!!!!!
>>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])
>>

>>>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?
>
>Jey wants to change colors in Report, not the the grid :-)
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
Reply
Map
View

Click here to load this message in the networking platform