Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting group headers
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00762349
Message ID:
00762827
Views:
15
>I have a few report forms that I need to count the number of group headings and everything that I have tried counts the number of records in the coursor. What is the best way to count the group headings?
>
>Thanks in advance
>Kelly


Create a Report Variable called rnGroups, set the value to 0, and set it to SUM. (I know .. this doesn't sound right yet .. but trust me). In the OnExit Expression of the Group Footer band, put the following expression:
_VFP.SetVar('rnGroups', rnGroups+1)
Now at the end of the report you have the total number of groups processed.

Cathy
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