Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confused about variable scoping.
Message
De
03/04/2000 00:20:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00354163
Message ID:
00354166
Vues:
21
>I need to define variables early on in a form which are available to every procedure/event in the form, but I want to protect them from multiple instances of the form. What should I do? Do I have to define them all as properties of the form?

Yep, use properties if they are going to be used in more than 1 method or event of the form anyway.

>Also when I close a form with Thisform.Release I can still see an object in the locals window. ie. name = formname, value = .NULL. and type = O. Am I doings something wrong?

Nope, thats normal behavior.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform