Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application object
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00163769
Message ID:
00164022
Views:
18
>>A note of clearification. My MAIN.PRG contains all the general stuff used in everything we create and the XXPROC.PRG contains the app spicific stuff.
>
>John,
>
>I do just the opposite. A tiny prog named ??main.prg does little but declare some DLLs and create the app object. Any other procedure is in a general function program that contains only functions of general application. Any functions specific to the app are in methods somewhere. Many ways to skin this cat....
>
>I do remember a little while ago a big debate on whether procedure code should be eliminated completely in an OOP environment. But I feel that one of the strengths of VFP compared to the pure OOP languages is that procedure code is still allowed. It is still sometimes the best way to encapsulate general functionality.
>
>I'll probably have to look out for the OOPs police, now! :)
>
>regards,


Jim,
My 'tiny' xxmain.prg is 14,057 lines. It is the entire base library we use in all apps. By having a standard library of functions and procedures and using it to set up the entire enviornment and launching whatever custom app we are creating we are always able to start writing a new app with confidence that we know exactly where we are and what is going to happen. I know the size sounds large but we have things in there that even give us the ability to directly control a laser printer cursor and font, as a small example.

Thanks for your comments,
John.
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