>Hi all > >I have the following piece of code to trap Escape key that sometimes work and at other times doesn't. > >llpress_esc = .F. >DO WHILE NOT llpress_esc > llpress_esc = INKEY() > ...... > ...... >ENDDO > >I would appreciate if anyone can shed some light on my problem. Thanks > >Best Regards