Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Modeless forms in a very large program
Message
From
24/01/2008 08:35:00
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01284682
Message ID:
01284924
Views:
27
>Thanks to all of you. It is obvious that our convoluted method of programming is causing the problem. Since everyone is in agreement that it should work then I know it has to be the way we are doing things.
>
>In order to keep the size of the project small and for easer maintenance we do not put code in the forms. Each form is called from it's own prg which holds all the procedures for that form. Since the form is modeless when the prg calls the form it drops right through. I need to change this somehow. Maybe call the form and have the form init set the proper prg as a procedure file additive then clear that procedure on exit.
>

Not putting code into forms is a mistake in an OOP environment. However, presumably, lots of code should be common to many of your forms. So your first step should be to develop some form classes that contain all the common stuff. Then base your forms on those classes.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform