Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I use a modeless form?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00501150
Message ID:
00501183
Views:
24
I guess you see why I am looking for a framework. the idea or concept of an application class is a new one for me today. ! mY gut feeling when I did some tests was that that public var before I created a class, was going about things, just badly.

BYW, do you have a pointer or link to what you call an appliation class? so I can get at least the idea...

thanks ! So much.
Bob Lee



>>>>>>>>>>>>>>>>>>
>the reason I am writing, is that I dont know for sure if this is a good way of handling classforms... by creating public vars... it works, but something is telling me that is not, really a good solution.
>>>>>>>>>>>>>>>>>>
>
>You should stay away from PUBLIC vars as much as possible. They are not OOP, they break encapsulation and are a PITA to debug.
>
>READ EVENTS is the correct way as Larry said.
>
>You can replace PUBLIC vars by proper use of scoping (LOCAL vars and PRIVATE occasionally like for reports for example).
>
>You can have global objects in an apllication class that you instance early in the loading of your program and that contains most of your utilities (like we used to do with SET PROCEDURE TO prg in procedural code).
In the beginning, there was a command prompt, and all was well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform