Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Losing Public Variables When Form Runs
Message
 
To
21/06/1999 18:58:37
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231160
Message ID:
00232300
Views:
19
>But so do the global objects, whose properties replace them. The danger of an accidental local/private var tampering with it is nil, but this global object's methods are avalilable everywhere around the app. Any nasty routine can approach it and either mess with its properties, or call its methods to do the same. So, globar vars are bad news, for sure, but we got to beware of global object abuse as well. Still, these are easier to find... well, it would be, if we had the Filer the way it was.
>

Global object properties cannot be referenced without using the global object's name. This prevents a lot of misuse. But my comments are more related to the variable reference to the global object and the fact that that variable doesn't need to be public for the object to be global.
Previous
Reply
Map
View

Click here to load this message in the networking platform