>oh, how about something like
>
> IF USED(srView)
> set escape on
> REQUERY(srView)
> if lastkey()=27
> do cleanUpAndStuffForUser
> endif
> ELSE
> USE (srView) IN 0
> ENDIF
>
>
>There is an ON ESCAPE command, but I don't think that would help in this situation.
Raphael,
That works welll enough, almost. In place of the "DO cleanUp.." statement, I am putting a MESSAGEBOX() then the next line just releases the form. However, just before my MESSAGEBOX() comes up, I get the VFP box ****INTERRUPTED****, Ignore, Cancel, and the program code is scrolled across my form. This is a result of SETting ESCape on. How do I prevent this message from happening?