Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group report by 2
Message
 
To
25/06/2004 15:15:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00917115
Message ID:
00917912
Views:
15
>Thanks for the clarification. That is quite interesting; if I print an incrementing report variable in the detail band, it will have the new value; if I use it to establish groups, it will have the old value! I didn't know that.


It's all a matter of understanding exactly when report variables are processed!! They are processed when the detail band starts ... not in the page header and not in the data group header.

Another point to understand is when a report variable resets. If you mark it to reset at a Data Group, it doesn't reset itself until it STARTS the next data group. This can bite you if a data group finishes on a page, you assume it clears after the data group footer, and then you try to do something with the variable in the page footer assuming it would be zero if the data group just finished. What happens is the variable still holds the value because it doesn't clear itself until it starts the next data group. So the page footer of this page, or the Page header of the next page, still has a value set, even though the data group is done.
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
Reply
Map
View

Click here to load this message in the networking platform