Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't obtain the desired results
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00851156
Message ID:
00852028
Vues:
8
>In the textbox of variable definitions:
>where :
>Tsum1 is: round(fieldx,2)
>Tsum2 is: round(fieldy,2)
>Tsum3 is: round(fieldz,2)
>
>Then, in the data group band of the report I print:
>
>round(Tsum3,2)/(round(Tsum2,2)-round(Tsum1,2)) && In a Textbox


This won't affect your results ... but in this case, you don't need all the ROUND()s in the textbox because you have already told the Tsumx variables to round each time they add in another detail value. No sense in making the report writer work harder than it has to.

So .. back to the original problem .. I don't see anything that would give incorrect results. Are you using Print When to suppress the printing of fieldx, fieldy, or fieldz under certain conditions. If so .. that this doesn't suppress them from being included in the Tsumx totals!!

Cathy
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform