Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quickest way to copy several methods from one class
Message
 
 
À
17/05/2007 16:50:09
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01226347
Message ID:
01226537
Vues:
17
>I've done that by creating a behavior object that attaches itself to the controls at runtime and binds the keypress and other events. I had to subclass the behavior object some depending on the type of control, but it works and keeps the duped code to a minimum.
>
>Gary
>

Thanks, Gary. Is it custom based class? Since I already done with direct copying technique I would not re-design, but I agree, this sounds like much better approach and I would keep this in mind for the future.

Also, I guess, it's more of a .NET kind of approaches, right?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform