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:
01248301
Views:
27
>>Interesting, why do we need to set this variable to SUM and why it didn't work in OnEntry of the Group?
>>
>>Anyway, I'll try that now, thanks a lot.
>
>If you don't set the calculate option to SUM, it will try to reevaluate the expression for every detail record that is processed. When it does that, it will wipe out the value you put there. So .. to get around that .. you give it an expression of zero, and tell it to SUM, which is what it does for every detail record but adding 0 to what you already stuffed into the variable doesn't affect the outcome.

Thanks a lot for the explanation.
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