Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting groups
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00058603
Message ID:
00058863
Views:
28
>You can do it with to Report Variables:
>
>nAuxCountGroups:
>Initial value: 0
>Value to store: nCountGroups
>Reset at: Report
>
>nCountGroups:
>Initial value: nAuxCountGroups + 1
>Value to store: nCountGroups
>Reset at: Account group
>
>Be careful to declare nAuxCountGroup before nCountGroups. nCountGroups will always contain the index of the current group (account in your case), thus, will contain the number of groups in the report summary.
>
>Vlad
>

Very nice way Vlad, I like this myself! I've been following this Thread becuase I do something similar in a few of the reports in my Data Warehouse apps, but I always handled it by calculating the groups ahead of time and storing it in an extra field (like someone else suggested I think). I think I will use this approach as I rewrite the Warehouse in VFP. Thank you.
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Reply
Map
View

Click here to load this message in the networking platform