Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Varaible and counting question
Message
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01043970
Message ID:
01248288
Views:
30
>>I have a report, where all the data is printed in a group header and nothing in the details.
>>
>>This is because the query will return mutliple records per person, but they only want the first record for the person to print. Now I need to add a total count to print at the bottom of the report. Basicly every time a group header prints, I need to increment a report variable by one. Anybody know the best way to do that?
>>
>>Thanks
>>
>>Kirk
>
>I guess the simplest way would be to use Report Group Header OnExit function something like that _VFP.SetVar("nCounter",nCounter+1)
>
>You would need to have nCounter variable created in the program which calls the report or in report itself in its DE. But then it has to be public and released too.

This would have worked too, but using report variable is easier.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform