Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Input Boxes
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00805162
Message ID:
00805169
Views:
31
Narad,

>I would like to know of a procedure to enter data into fields and tab to get a subtotal then a total i.e. I am trying to multiply quantity by price to get a subtotal then I have this subtotal summed to a grand total.

In the LostFocus() of txtQuantity and txtPrice:
thisform.Refresh()
In the txtSubtotal.Refresh():
*assuming txtQuantity and txtPrice are bound to the fields quantity and price
this.Value = quantity * price 
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform