Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 Events
Message
From
03/01/2001 14:55:06
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00458642
Message ID:
00459061
Views:
32
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform