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,
Frank Camp