Hi!
Just place in Valid Event the following:
if lastkey() =27 && Esc was pressed
return .t.
endif
Have a happy day
Vladimir Shevchenko
> I would like to cancel and exit my form by pressing a Cancel button.
> However, if i am stuck in a Valid event, i am unable to do so until i
enter
> a valid item in the field concerned. How do i solve this problem ?
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer