Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / what's the deal with the escape key

Author
Message
Chief Engineer
21
Years of Service
User Offline
Joined: 26th Feb 2003
Location: United States
Posted: 6th Mar 2003 06:59
ok, i've made this elaborate code for a program ending sequence using the escape key, however, after i make an .exe and i run the program, i hit the escape key and instead of the program bringing up my exit prompt, the program just ends. i thought maybe my code was wrong so i changed the escape key to the 'e' key and it works fine. do DB programs just quit when you hit the esc key by default? if so, how can i disable this so that the esc key will go through with my exit prompt? thanx in advance.
Easily Confused
21
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 6th Mar 2003 09:37
You can use Disable Escapekey() to prevent your program from quitting automaticaly.

And then you can still check for it by using Escapekey()



Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Chief Engineer
21
Years of Service
User Offline
Joined: 26th Feb 2003
Location: United States
Posted: 7th Mar 2003 01:50
thanx man, that helped

Login to post a reply

Server time is: 2024-09-19 22:48:03
Your offset time is: 2024-09-19 22:48:03