Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Varaible and counting question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01043970
Message ID:
01248301
Vues:
28
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform