Versions des environnements
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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement