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:49:56
 
 
To
02/01/2000 10:46:52
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00311340
Message ID:
00311353
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform