Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of groups
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00101101
Message ID:
00101508
Views:
34
>For example, if your group breaks on a field 'MyData.TYPE' Make 2 variables. The first is cType, Value to Store: MyData.TYPE, Initial Value: '' (Use the correct type here, '0' for numeric, etc.)
>
>The second is GroupTot,
>Value to Store: grouptot + iif(ctype = MyData.TYPE, 0, 1), Intial Value: 0.
>
>Put them BOTH in the group footer. If you don't want to see the cType variable, simply set the Print When to .F..

You can define report variables (not fields) that are never printed unless you define a field that prints such a variable.

Just as a VFP trick, I believe this can be done with just one public variable defined outside the report:

MyCounter = 0 && Outside the report

Define a report variable with the name "MyCounter":

Initial value: MyCounter = MyCounter + 1
Value to store: MyCounter

This way, at detail level, its value remains unchanged and it increments when the group changes.

Probably this will work... :)

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform