Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NoDefault () and DoDefault()
Message
De
28/02/2000 13:48:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338552
Message ID:
00338573
Vues:
14
>Stacy,
>
>Your otherwise can be empty, a NODEFAULT followed by a DoDefault() does nothing to alter the default behavior. Try dumping the otherwise all together.

I had thought that NODEFAULT followed by DODEFAULT() was not always the same as putting no code in a method. The documentation I read said that Dodefault() executes code from the class from which the object was instantatiated, whereas NODEFAULT will suppress code from all levels -- including default base class behavior. So if you have an object well down in a hiearchy the combo would execute code from the immediate class, while the NODEFAULT would suppress code from all class above. This is not a correction, you are probably right, and I'm probably misremembering. I'm just asking this so I can get rid of a possible instance of "knowing somthing that's not so" the most dangerous type of mistake.
Thanks

Gar W. Lipow
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform