Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
On key label
Divers
Thread ID:
01655489
Message ID:
01655489
Vues:
129
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
****************
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform