Error getting tags :
error 404Error getting tags :
error 404 interrupt | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
interrupt
Basics
Expander triangle
Type
Function
Syntax
the interrupt interrupt()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns true if the allowInterruptsproperty is false and the user has attempted to halt the current handler with a key combination.
Examples

if the interrupt then doCleanExit

Additional Comments
Expander triangle

Use the interrupt function within a handler to check whether the user has attempted to stop the handler by typing Control-period or Control-break (on Windows or Unix) or Command-period (on Mac OS).

Value:

The interrupt function returns true or false.

Comments:

Normally, pressing one of the key combinations stops any running handlers. If the allowInterrupts property is set to false, the user cannot interrupt a handler in this way.

To let the user interrupt a handler when the allowInterrupts is false, check the interrupt function periodically. If it returns true, the user has attempted to stop the handler. You can then perform any needed cleanup tasks before exiting the handler.

User Comments
Expander triangle