Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP : How to get the sum of a column in a grid? Urgent!
Message
From
02/01/2000 10:56:21
 
 
To
02/01/2000 10:27:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00311340
Message ID:
00311358
Views:
21
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform