Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Input Boxes
Message
 
 
À
29/06/2003 23:18:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00805162
Message ID:
00805169
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform