Curvature

Set Escape, Set("Escape")

This command controls whether the Esc key interrupts program execution. It doesn't control whether Esc closes windows, chooses Cancel buttons, and so forth.

Usage

SET ESCAPE ON | OFF cOnOrOff = SET("ESCAPE")
SET ESCAPE also controls ON ESCAPE. When ESCAPE is OFF, the escape handler specified with ON ESCAPE is ignored.

SET ESCAPE is only one part of turning off the Esc key in an application. It keeps the user from interrupting your program—generally a good thing to do. But it still leaves Esc available in forms and Browses and other places. This is usually what we want (once we've finished debugging the application, anyway).

If you really want to make Esc dead, dead, dead, SET ESCAPE OFF and issue ON KEY LABEL ESCAPE *, which tells FoxPro to execute a comment when the user presses Esc.

Example

SET ESCAPE OFF

See Also

Cancel, On Escape, On Key Label


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net