Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's NoDefault and DoDefault
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00213459
Message ID:
00213474
Views:
32
DODEFAULT() just runs the code one step up the class hierarchy from your current method. So if you put DODEFAULT() in the click method of a command button and the command button's parent class is cmdBase, DODEFAULT() will run cmdBase.Click().

NODEFAULT keeps the base class default behavior from ocurring. For example, if you put NODEFAULT in the unload event of a form, the form will not unload. If you put NODEFAULT in the keypress event of a text box, the keystroke will not be processed.

>Many answers to questions have NoDefault or DoDefault, and I tried to use the code of an answer and when VFP compiles it an error ocurrs.
>And i wish to know what they mean and how to use it.
>
>Who could tell me about?
Previous
Reply
Map
View

Click here to load this message in the networking platform