Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating in a scan...endscan
Message
De
01/10/2006 20:39:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01158457
Message ID:
01158468
Vues:
19
>Hi Hillmar,
>if you were me , how you do this with report variables ?

With report variables this is much simpler than replacing in the cursor; report variables have the built-in capability for accumulated totals.

Call the variable "Accumulated" (or any other appropriate name), set the expression to "Debit - Credit", set calculation to "Sum", and reset to "End of report" (if you want to accumulate for the entire cursor).

Use the report variable instead of a fieldname, in the detail band.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform