Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic Updating in Grid Column Sum
Message
 
 
To
04/10/2001 22:51:00
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00564605
Message ID:
00564611
Views:
16
>Dear all,
>
>In my account program, a grid holds the voucher contents with a local view - grdvdetail (say), on the form, I utillize a [OK] commanbutton to update the final editng to the voucher contents with a code statement :
>
>select grdvdetail
>tableupdate(.t.)
>
>On the foot of the form, I utilize a set of textboxs which calculate the total debit amount, total credit amount and total balance by using another view which coding as
>
>select sum(vdebit) as tdebit, sum(vcredit) as tcredit from grdvdetail into cursor tsum
>
>How can refesh the total debit amount, total credit amount, and the total balance, before I click th e [OK] button to tableupdate the view grdvdetail??
>as I edit the debit amount and the credit amount in the grid columns.
>
>
>With regards,
>
>Ransome

Instead of SELECT SQL use SUM command (See SUM, CALCULATE commands in Help).
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform