Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What, really, is NODEFAULT?
Message
From
16/04/1997 14:01:07
 
 
To
16/04/1997 13:45:29
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00028566
Message ID:
00028574
Views:
50
>>
>> >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.
>
>Are you sure? I thought any code preceded all inherited code, not just
>the parent.

Yes, but it's not really 'code'. It's like if you pressed TAB you go to next control, but you will never find this coded somewhere.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform