Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What, really, is NODEFAULT?
Message
De
16/04/1997 13:30:06
 
 
À
16/04/1997 13:18:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00028566
Message ID:
00028569
Vues:
39
>Was coding this morning when I got this thought, so I thought I would ask here.
>
>Is "NODEFAULT" actually a command/clause or is it just a comment??
>Here's why I ask:
>
>NODEFAULT is said to be used to prevent the execution of default event/method code.
>BUT, according to the documentation (at least the way I read it), *ANY* code in a method/event supercedes the (same) method/event code of the Class. In other words, sub-class method/event code runs INSTEAD OF base clas method/event code for that event/method.
>Now, the simple act of including "NODEFAULT" is also the act of including "code" in a method/event, so that in itself would preclude running of the "default" method/event code. In other words, if I simply coded "RETURN" I would get the same result.
>
>What am I missing here???
>
>Jim N.

That's right for Parent-Child class relationship. But there is also BaseClass, and I believe that NODEFAULT prevent firing some 'invisible' base functionality.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform