Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Great ESC?
Message
De
19/04/1999 15:08:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00209813
Message ID:
00209820
Vues:
35
Hi Steve ---

What you can do, in the loop, is to trap MDOWN() by testing for it in the loop. If MDOWN(), test for MROW() and MCOL(). If they match the row,col coordinates for the button, you then know that the button is pressed and you can EXIT accordingly.


>I have a program running in a continous loop on purpose. I want a button on my form to act almost like "Pressing the ESC key" to interrupt the program that's in the continuous loop.
>
>Is there a way to do it without getting the VFP error dialog box that says, "Cancel, Suspend, Ignore, etc." when you press the ESC key?
>
>I guess I can use the CHR() with ESC character code to cause the interrupt to occur, but I don't want the VFP error that follows. Can I trap the error before it is displayed and not show it?
>
>Thanks for your help in The Great ESC.
>
>Your truly,
>Steve "McQueen" Kramer
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform