Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling Escape Key
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Handling Escape Key
Miscellaneous
Thread ID:
00254940
Message ID:
00254940
Views:
56
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!
Next
Reply
Map
View

Click here to load this message in the networking platform