Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-Classing
Message
From
02/02/1999 09:43:58
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
To
02/02/1999 09:03:00
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00182898
Message ID:
00182915
Views:
7
Jason,

Josh's ideas are all well spoken. If you have VFP 6, you can get an idea of what he means by looking in the \FFC subdirectory of your VFP install directory, particularly the class library "_base.VCX".

One thing to keep in mind as well, on the subject of forms. Controls are simple in that you can often subclass them only once and end up using the subclass. For instance, if you create _CommandButton, to which you add your own features, you will probably end up using _CommandButton in many places w/o subclassing it further. This is almost never the case with forms. It's a good idea to create "MyFirstFormClass", and then subclass your specialty forms from there, such as the form that users use to launch reports, the form that users enter system options on, the form that users do 1:M on, etc.

Hope this helps and welcome to the wonderful world of OOP!
Previous
Reply
Map
View

Click here to load this message in the networking platform