I don't have a beard, but I'll stomp on you. *s*
I have sucessfully used Escape in this manner, and have been doing so for a very long time. It works just fine for allowing a user to exit a loop.
>Hi Nadya and Barbara.
>
>I think your using SET ESCAPE in the wrong context - this is actually designed for 'interupting' a program that is being run from within the VFP development environment. The on-line help states: "Determines whether pressing the ESC key interrupts program and command execution" in allmost all cases control is returned to the
"Command Window".
>
>You should actually be using an INKEY() and testing to see if the return value is 127.
>
>Of course I may be completely wrong myself - in which case I can expect the bearded-ones to stomp on me very shortly :-)
>
>Houston.