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:
00501391
Views:
24
Just wanted to tell you guys thanks. ! a few more tests and I figured out how my scoping was in error. creating a new object in the click event of a form - menu. of course, that wont work....

So after a few minutes of trying different things. getting a clear head, got it all working .
thanks

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
Reply
Map
View

Click here to load this message in the networking platform