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:56:21
 
 
À
02/01/2000 10:27:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00311340
Message ID:
00311358
Vues:
19
>Create a view that is SELECT SUM(field) AS sumfield FROM gridtable. In the AfterRowColumnChange event of the grid, requery the view. Put a textbox to store the total somewhere on the form and make it Enabled=.F. and ControlSource = View.Sumfield.
>
>>As subject! Please help!

I table buffering is used:
 SUM [eExpressionList]
  [Scope] [FOR lExpression1] [WHILE lExpression2]
  [TO MemVarNameList | TO ARRAY ArrayName]
  [NOOPTIMIZE]
should be used in place of the select.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform