Peter Cushing wrote:

Just want to see where people store their form classes and why.

When I first started using VFP I used to create a new form from scratch every time I needed one, which was a pain. Now I have created a baseform class (stored in a baseform.vcx) which has all my basic form characteristics set. The baseform class has been subclassed this to a modal class. Now if I need a new form I subclass one of these and then save it in the same file (baseform.vcx) using a new name. My problem is that I did a new form on Friday, which was working nicely but when I opened it today all the method code has gone! I can recreate the code as it was not that complex but I am now thinking that I should save each new form in its own VCX file (still subclassed from baseform). This might be more secure as if one file becomes corrupt it won't affect the others (unless it is the baseform).

Any views/ideas on this and why?


I have my base classes in their own classlib (mjbbase.vcx). I then create SCXs or VCX-based form classes using that mjbbase.vcx classlib as the class to inherit. And I never create takeoffs in the base library...I always create a new class library for the specific project (mjbProject.vcx) and then store them in there (if VCX-based forms). I find that I create an even mix of SCX/VCX forms and don't really lean towards one or the other unless it's something I can get a lot of reuse out of (and in that case, I most likely create a VCX form).

Ugh....re-reading that, it's time for a break.  <g>

--
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to