Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Mystery
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Report Mystery
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01248295
Message ID:
01248295
Views:
73
Hi everybody,

Somehow I could not figure out a simple problem.

I have a very simple report with one group and a summary. In the summary and in the group footer I'm printing totals. Now, if I only have one group, I don't want to print totals to not repeat the same information.

Very simple.

So, I've created a report variable called nGroups, set it to SUM, added a _VFP.SetVar('nGroups',m.nGroups + 1) in Group Footer OnExit expression and put
nGroups>1 as Print When condition for my amounts in the Summary. I also put nGroups in the Summary to make sure it's calculated correctly.

Now, I see 2 for nGroups in the Summary, but the amounts don't print.

I could not find out what's wrong and I spent about an hour on this already.

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform