Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP7 Events
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00458642
Message ID:
00459061
Vues:
33
Hi!

You are talking more about User Defined Methods and I agree, for UDM's hooks are Ok but I am talking about events (Click, Init, Destroy, Load, Unload etc.) specaily if the objects are two or more levels deep.

I just think it's more natural/cleaner to Extend an object's behavoir than to Override it by default.

Sarosh


>It is mostly a matter how parent classes are designed (I agree with Fred and Trey here). Also in many cases I use the hook methods anyway, (say, OnBeforeSave() and OnPostSave() so the custom code for the class instance is located there without the need of using DODEFAULT(). Not to mention a greater flexibility for the future changes.
>As others mentioned, you might be just using NODEFAULT for your approach instead of DODEFAULT() with the current one.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform