Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Menu Shortcuts
Message
De
19/12/2000 08:13:56
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00454279
Message ID:
00454982
Vues:
29
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform