Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Shortcuts
Message
From
19/12/2000 08:13:56
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00454279
Message ID:
00454982
Views:
26
Doru:

> If something is the default, everything else should be an exception.

Not necessarily because DoDefault allows you to provide additional
functionality to your subclasses (controls).


> Seriously, it seems logical to me that the more dodefault() calls you
> have to make, the more likely your class design is questionable.

True if you have a lot of dodefault calls at the control level. In your
specific case, you may want to break your Valid into something like this:

luRetVal =
If Not Empty(luRetVal) Then
luRetVal = This.CustomValid()
EndIf

and use the CustomValid as a repository for the code at the control level.


Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform