Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running Total
Message
De
27/07/1999 15:11:17
 
 
À
27/07/1999 14:50:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00246796
Message ID:
00246811
Vues:
17
Hi Sandi,

>Does anyone know an easy way to create a running total (balance) in a grid. Since the user could change row one after entering row four, all rows must be recalc'd. What method should this code go in? Previously in Fox 2.6 I saved the record pointer, summed until reccount and then restored the record pointer.

I don't think you should use the grid to tally records, but rather the control source itsself. In the AfterRowColChange event fire a sum of your columns controls source and stick it in a caption or text box below your grid, or set it up so a text box automatically reads SUM(columnscontrolsource) and just do a ThisForm.Refresh() in the AfterRowColChange. Let me know if you need anymore help implementing this.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform