Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public Variable Losing Scope on Init of Form
Message
 
To
10/08/2001 01:40:19
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00541965
Message ID:
00542173
Views:
39
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,
Frank Camp
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform