Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables in form
Message
De
05/12/2007 08:32:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01273093
Message ID:
01273241
Vues:
10
>If I declare a variable in init event of a form
>this variable is not found in a button or other object of the form
>
>I have to declare it as public
>
>Is it really necessary to declare the variable as public ?

try adding a property to the form object with ADDPROPERTY(). It would then been scoped to the entire form and all of its methods. When the form loses scope, so does the property.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform