Hi Frank,
sorry, you are right and I was partly wrong. I know when to use NODEFAULT and how it works in different cases, but I was not very clear in my explanation. In my applications I often have code segments with NODEFAULT - some code - DODEFAULT, I never use NODEFAULT without DODEFAULT.
>Hi Tore
>
>>Sorry if my answer was not complete enough for you. NODEFAULT tells VFP NOT to run the code you have in the commandbutton baseclass, if you have any code there.
>
>This is not true. If a method has code it will not call the code in the baseclass unless you use DODEFAULT()
>
>if code runs in a method and NODEFAULT is executed, the VFP behaviour will not run. For instance the example at the start of this thread. It is code in the keypress method, calling NODEFAULT there will prohibit VFP from showing the entered key (in a textbox for example)
>
>Because DODEFAULT() and NODEFAULT have different functions, it is entirely possible to have both commands in the same method.
>
>Regards,