Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper technique for Functions/Procedures
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095133
Message ID:
00095144
Views:
21
>I used to define functions and procedures in my SCAFFOLD.PRG in the pre-VFP5 days. If I were to take oo programming seriously, what would be the proper way to deal with such things nowadays? What are the advantages and pitfalls?
>
>TIA

There is always more than one way to skin a cat. :) You can make those procedures and functions as methods in some public accesible object, or in app object. But even commercial frameworks still use procedure files too. You may use a combination of both ways. IMHO, if you have procedure file it may be easier to test your forms without running the app, because in this case you don't need to create app object (or procedure object?) when you just need to test one form. For example Visual Extend uses procedure file. In VFX 5 version to ease the testing stage you can run your forms without running the app and it will even instantiate the toolbar. I have heard that many people still use procedures and functions as separate PRG files.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform