Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
On key label
Miscellaneous
Thread ID:
01655489
Message ID:
01655489
Views:
130
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
****************
Next
Reply
Map
View

Click here to load this message in the networking platform