{"identifier":97387,"topic":"Properties","name":"lockErrorDialogs","text":"<code> set <\/code>[<code>the<\/code>]<code> lockErrorDialogs to <i>\u00ac  <\/i>                <i>trueOrFalse<\/i> <br><br>\n\n <\/code>The<code> lockErrorDialogs <\/code>property returns or sets whether HyperCard, on encountering an error, presents an error dialog box. <br><br>\n\n This property defaults to false at idle time, meaning that error dialogs usually appear. <br>\n<br>\n When this property is set to<code> true<\/code>, HyperCard, on encountering an error, does <u>not<\/u> display an error dialog box; instead, it sends the message <code>errorDialog <i>errorMessageText <\/i><\/code>to the current card. <br><br>\n\n <i><code>ErrorMessageText <\/i><\/code>contains the text of the error dialog box. <br>\n","related":{"97279":"errorDialog"},"examples":"\nset lockErrorDialogs to true\n\nset lockErrorDialogs to false","demo":"on errorDemo\n   set the cantDelete of this card to true\n   set <b>lockErrorDialogs<\/b> to true\n   doMenu \"Delete Card\"\n end errorDemo\n <br><br>\n\n -- handler in the script of this card\n on errorDialog whichError\n   answer \"Had lockErrorDialogs not been set to true,\" &&\u00ac\n   \"HyperCard would have displayed the error, \u201c\" & whichError & \"\u201d\"\n end errorDialog\n ","debug":{"9":["\rset [the] lockError"],"10":["\rWhen this property "]}}