Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public Variable Losing Scope on Init of Form
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00541965
Message ID:
00542277
Views:
32
>Hi Nancy,
>
>>>You should stay away from public variables altogether. Instead, make them properties of your application object.
>>
>>Which of course would be a public variable...< beg>
>
>Not neccesary.
>
>I've got my oApp tied to _SCREEN, so all my calls are _SCREEN.oApp.xxxxx
>
>Whenever VFP6 clears all its (global) variables when certain errors occur (I've seen it occur) at least my oApp is still there because it is not a (global) variable but a property/object of _SCREEN.
>
>Regards,

Red, White and Blud...nice sig, Frank!
ProMatrix MVP... I did some moonlighting for an old client last fall, and the app they purchased the source to was partly built with VPM.
Nice framework. Quick and easy to learn and use.
Nebraska Dept of Revenue
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform