Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Percentage calculation in expression of report
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00588031
Message ID:
00588201
Vues:
43
Max,

If this case nCalRpt program even should not be called, since we're not using it anymore.

Ok, once again:

1) Create a variable in Report. Give it another name, say, MyVal
2) Put field1+field2+field3 in the value to store and 0 in Initial value
3) use this variable in detail band in field expression:
iif(myVal+Field2>0,(MyVal/myVal+Field2)*100,0)

See, if the above will work. If not, try first on a test report, then see, why it is not working on yours?


>I then get an error opens on nCalCrpt.prg (the lReturnValue line) that reads:
>"Allowed DO nesting level exceeded" when I put the fields in the Value to Store
>Thanks
>Max
>
>> Weird. What if you explicitly put field1+field2+field3+... instead of CalCrpt() in ValueToStore for this variable? It should work, I think.
>
>> You may want to send this report to me, I'll check it...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform