IF USED(srView) set escape on REQUERY(srView) if lastkey()=27 do cleanUpAndStuffForUser endif ELSE USE (srView) IN 0 ENDIF