Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label
Message
From
10/11/2017 13:58:55
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01655489
Message ID:
01655490
Views:
59
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
>****************
>
Previous
Reply
Map
View

Click here to load this message in the networking platform