>In the Valid, put:
>IF LASTKEY() = 27
> * Escape pressed
> RETURN .T.
>ELSE
> * Validate the data
>ENDIF
I found my mistake. I shouldn't use "\?"
in the cancel button. "\?" will fire the valid()
even if you press ESC, twisting the normal response
of a READ to an ESC. SHouldn't copy examples blindly....
Regards,
Mr. Man-wai Chang