use
if inkey(.01,"HM") = 27
exit
endif
HTH
>Hi Mark,
>
>It works, except that now it shows | in my ProgressBar (waiting the User Input).
>Is it possible to cach last pressed key, but don't show this Enter sign?
>
>Thanks in advance
>
>>>if lastkey()=27
>>> exit
>>>endif
>>>
>>>I don't see any reaction... The process still continues to execute.
>>>What should I do?
>>
>>You should change LASTKEY() to be INKEY(). INKEY() checks the current keyboard buffer, while LASTKEY() checks the key used to exit the previous dialog.
Fred Besterwitch, MCP
The harder you work. The luckier you get.