Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to public variables
Message
 
 
To
11/06/2002 18:14:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00667071
Message ID:
00667181
Views:
26
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform