Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling Escape Key
Message
From
18/08/1999 09:39:54
 
 
To
18/08/1999 09:35:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00254940
Message ID:
00254945
Views:
22
SET ESCAPE OFF

>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
------------------------------------------------
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform