Hello Alessio,
My code did not work because i put the nodefault clause at the beginning of the code, putting it where you told me, works fine. Anyway I don't understand why it behaves so...but the important thing is that it works !!!
I makes some sense when you stop to think about it. By default, VFP runs any custom code that you have written in a native method. It then runs any code that it in the base class (if any). For example, If you put code in the KeyPress() method and then issue NODEFAULT, it suppresses the keystroke. I imagine that if you put the NODEFAULT before your custom code, VFP probably sees the custom code and then executes its native base class behavior because that is what it does: run your custom code and then execute the default base class behavior unless it sees a NODEFAULT.
Anyway, I am glad that you got it working.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only