Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternate row colors
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01128698
Message ID:
01128758
Views:
22
This message has been marked as the solution to the initial question of the thread.
Here's what you do...

1. Add a report variable called rnInvCount, set the value to zero, set the Calculate option to SUM, set the Reset point to End of report.

2. In the OnExit Expression of the group footer band for the invoice, put the following:
_VFP.SetVar('rnInvCount', rnInvCount+1)
3. Use the logic of MOD(rnInvCount,2) = 0 (or the opposite) in your shading to determine whether to print the colored background.
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform