Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Total of a column from grid
Message
From
07/11/2000 07:12:58
 
 
To
07/11/2000 07:09:17
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00438706
Message ID:
00438710
Views:
12
In addition, use 'SUM' command to make calculations, for example:

SUM MyField TO MyVar

You can also use SELECT SQL command to calculate sum, but this command does not reflect changes when cursor is buffered.

>Sammy,
>
>You could add a textbox to the form and place it below the column to total. You could have a method (e.g. ThisForm.CalcColumnTotal) that calculates the total and updates textbox.value. You'd have to call this method whenever the contents of the grid changes.
>
>Hope this helps.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform