Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP : How to get the sum of a column in a grid? Urgent!
Message
De
02/01/2000 10:49:56
 
 
À
02/01/2000 10:46:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00311340
Message ID:
00311353
Vues:
21
Ralf,

The answers you have gotten assume that the ControlSource for the grid is a field in a table and that you can use SQL to sum that field. If this is not the case, you can always put

ThisForm.SumColumn=0 && Add this property to the Form
FOR EACH oColumn in This.Columns
ThisFomr.SumColumn=ThisForm.SumColumn+oColumn.TextBox1.Value
ENDFOR

>I mean in a GRID!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform