Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variables in form
Message
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:
01273103
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>Thank you
>
>I thought variables were supposed to be valid while in the same form
>
>I used to declare them in init method and release them in
>release method
>
>But sometimes I forget to release them
>
>Moises

No, any method or event in the form is a single program routines . So variable scopes are valid as in other ones:
LOCAL until that code is visible and not for any other routines executed in it.
PRIVATE until that code is visible and for every other routines executed in it.
PUBLIC for every other routines executed in it and after it until that variable is released.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform