Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling Escape Key
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Handling Escape Key
Divers
Thread ID:
00254940
Message ID:
00254940
Vues:
57
Hello!

I have a question that I was curious how some of you have handled. When a SELECT statement is running and the user presses the escape key what is a good way to handle this.

What I have come up with is:

this in my startup.prg
on escape main.cmdstop.click()

And this in main.cmdstop.click event
lnnowwhat=messagebox("Are You Sure You Want To Cancel?"+chr(13) ;
+" Report Creation Will Terminate",36,"Abort Update?")
if lnnowwhat = 6
on shutdown
on error
close all
cancel
else
retry
endif

This works when a select statement is running but I really don't want them to be kicked out of the program, just brought back to the main screen. I know there probably is an easy way to do this but I seem to be brain dead this morning.

AHWBGA!!!

-Kevin
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform