Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Private vs. Public variables
Message
From
31/12/2000 13:01:11
 
 
To
31/12/2000 11:51:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00458199
Message ID:
00458205
Views:
14
>>>>>>>>>>>>>>
All of the variables on the first page are Public, which is what I want. However all of the variables on the second page are Private. I don't understand why.
>>>>>>>>>>>>>>

I'm not sure why they are private. But why do you want public vars at all? They are not a good idea. They break encapsulation and they can become a maintenance nightmare.

You should change them to be properties of the form, or of some application object, or even of the _screen object. You can use AddObject() to add them at runtime.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform