Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sub-Classing
Message
De
02/02/1999 09:43:58
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
 
 
À
02/02/1999 09:03:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00182898
Message ID:
00182915
Vues:
8
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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform