Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternative to public variables
Message
 
 
À
11/06/2002 18:14:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667071
Message ID:
00667181
Vues:
25
>>>A variable declared in your main program is public for practical reasons (unless you declare it LOCAL), since it is available everywhere.
>>>
>>
>>Private variables would not be seen in non-modal forms beyond the Load of the form.
>>
>
>Hello Nadya,
>
>That is not true...private variables/objects created in the main program are visible in all methods of forms.

Quick tests confirmed, that you're right. However, I recall, that I had situations, when variable, declared as private in main program, was not visible in the form. I have this application at work, I remember, I had to change private to public. I'll check, what's wrong in this case more carefully.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform