Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Modeless forms in a very large program
Message
 
To
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:
01285233
Views:
22
>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

Tamar,
There are two reasons we use our current method of calling a prg that runs the form:
1 - Much easier to maintain the code as it is all in one prg and not in some number of methods that must be opened seperatly.
2 - It decreases the size of the final .exe which now is approaching 10 MB.

What is the difference between putting code in a form and having the code in a prg as far as OOP is concerned? I thought it would be the same.

I realize our method of calling a prg which calls the form could be the reason the modeless forms only flash and disappear but that can be solved.

ps. I have a number of your books and could not have gotten this far with FoxPro without them.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform