How to Calculate Running Totals in a BROWSE CommandID: Q102890 2.50 3.00 | 2.00 2.50 kbprg
The information in this article applies to:
You can display running totals from database fields, or running totals for a particular control break, by using calculated fields in a BROWSE command. The following example uses the CUSTOMER database and displays the running total of year-to-date purchases (YTDPURCH field) using the file and field names in FoxPro 2.x:
The same concept can also be applied to display running totals for a
particular control break. For example, if we wanted to calculate the
running total of year-to-date purchases by company number (CNO), and
have an index tag on CNO, the following code could be used:
Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.00, 2.50, BROWSE,
CALCULATE
KBCategory: kbprg
KBSubcategory: FxprgBrowse
|
Last Reviewed: April 30, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |