lockErrorDialogs | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Specifies whether execution errors cause an errorDialog message to be sent, or display the error window. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Keyword: default Property: lockErrorDialogs Message: errorDialog, scriptParsingError Command: reset, unlock error dialogs Function: interrupt, errorObject Glossary: property, handle, handler, error, execute, message, execution error, behavior, object | ||||||
Description | Use the lockErrorDialogs property to handle execution error|execution errors in a custom handler, rather than allowing LiveCode to display the standard error window. If an execution error occurs while the lockErrorDialogs property is set to false, the error window appears. This is the default behavior. If an execution error occurs while the lockErrorDialogs property is set to true, an errorDialog message is sent to the object whose handler set the lockErrorDialogs to true. If you set the lockErrorDialogs to true, you should provide an errorDialog handler to notify the user of the error and perform any necessary cleanup. |