lockErrorDialogs

Typeproperty
DictionaryLCS
LibraryLiveCode Script
Syntax
set the lockErrorDialogs to {true | false}
Summary

Specifies whether execution errors cause an errorDialog message to be sent, or display the error window.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
set the lockErrorDialogs to true
Values
NameTypeDescription
Value

The lockErrorDialogs is true or false. By default, the lockErrorDialogs property is set to false. It is reset to false when all pending handlers are finished executing.

RelatedKeyword: 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.