Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local variables
Message
De
30/08/2000 15:35:35
 
 
À
30/08/2000 15:33:16
Robert Arnett
Saints Software and Systems
Kosciusko, Mississippi, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00410962
Message ID:
00410964
Vues:
15
>I have a form upon which I have placed a bizobj that calculates a retail sale such as taxes, interest, downpay etx. I want to click on check boxes and caluclate, so I want to use variables like nTotalTax and have that as the control source for a textbox. I keep getting errors that the variable does not exist. I went to the form.LoadEvent and defined these variable as Local and initialized them to 0. I though that this should make them available to me all through my object. Please clarify my thinking. Thanks Bob A

LOCAL restricts the scope to the method.
As soon as the Load() was done, they went out of scope.
I recommend using custom form properties for these instead.

textbox.ControlSource = "thisform.nTotalTax"
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform