Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When is NODEFAULT used?
Message
From
22/04/1999 13:17:53
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00211090
Message ID:
00211146
Views:
26
>>Hello,
>>I don't know, in which cases the function NODEFAULT is used. Can anyone tell me when this function is helpful?
>
>You use it whenever you don't want the default behavior of any parent classes to be executed in addition to the code that you add to a method. If you want to completely override the parent behavior (as opposed to extending it, relying on the code in the parent class(es) to implement some part of the functionality) you add the NODEFAULT statement to the method code.
>
>>Thanks in advance

I understand. But isn't the 'default' superclass method suppressed automatically, if I write code in the method, and do not add DODEFAULT()?
Then it would be only needed to say NODEFAULT() if no code is added in the method, and I want to suppress the class behavior.
Is this correct?
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform