Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What, really, is NODEFAULT?
Message
From
16/04/1997 13:30:06
 
 
To
16/04/1997 13:18:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00028566
Message ID:
00028569
Views:
41
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform