chk on escape
>I have forgotten how to wait for a key to be pressed. In using ON KEY label spacebar drawIt(), the program will wait for the spacebar to be pressed. But it does not seem to hear when I press the ESC key, and the program will not shut down, unless I close forxpro?? Thanks, Steve
>
>*https://msdn.microsoft.com/en-us/library/aa978092%28v=vs.71%29.aspx
>
>USE myTable
>GO top
>DO WHILE .not. EOF()
> ON KEY label spacebar drawIt()
> ON KEY label esc stopIT()
>SKIP
>ENDDO
>***************
>PROCEDURE drawIt
> BROWSE
> WAIT
> IF .not. EOF()
> skip
> endif
>ENDPROC
>**************
>PROCEDURE stopIT
> cancel
>ENDPROC
>****************
>