Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label
Message
De
10/11/2017 13:58:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01655489
Message ID:
01655490
Vues:
61
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
>****************
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform