Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating in a scan...endscan
Message
From
01/10/2006 20:39:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01158457
Message ID:
01158468
Views:
18
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform