Hi Michel!
Personally, I'm using the following code in KeyPress() event of form class:
if nKeycode = 27 && User has ESC pressed
this.Release()
endif
Also, Keypreview = .t.
>>ON ESCAPE ThisForm.Release() ?
>Visual FoxPro doesn’t execute an ON ESCAPE routine if SET ESCAPE is > In
my case, I have SET ESCAPE OFF, so this won't help.
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer