Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 - Grid - Running Balance
Message
From
03/01/1997 14:25:43
 
 
To
03/01/1997 14:12:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00016391
Message ID:
00016415
Views:
51
>You can use the same technique in Visual FoxPro. Basically, you can put your calculation code in a method and call that method as indicated in my first reply. The running balance var will now become a property of the form and the code in the method you will create will get the value from that property and increment the current line value.

I must really be missing something then because that is what I am doing.

I set the control source for the grid column to my method thisform.calc_bal()

thisform.calc_bal code (maybe this is the part where I am messing up)
-----------------------------------
thisform.n_run_bal = thisform.n_run_bal + history.amount
return thisform.n_run_bal

I created a property for the form to hold the running balance: thisform.n_run_bal
Mike Laubach
IP Services Inc
mlaubach@ipserv.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform