{"identifier":97279,"topic":"System messages","name":"errorDialog","text":"<code><pre>errorDialog <i>errorMessageText<\/i>\n<\/pre><\/code> Handler: <br><br>\n\n <code><pre>on errorDialog <i>whatText<\/i>\n   <i>statements<\/i>\nend errorDialog\n<\/pre><\/code>\nHyperCard sends the<code> errorDialog <\/code>message and its text to the current card if it encounters an error when the<code> lockErrorDialogs <\/code>property is set<code> true<\/code>. <br><br>\n\n (In such a case, the ordinary error dialog box is <u>not<\/u> displayed.) <br>\n<br>\n <i><code>errorMessageText <\/i><\/code>is the contents of the error dialog box that would be displayed if the<code> lockErrorDialogs <\/code>property were <code>false<\/code>. <br>\n","related":{"97387":"lockErrorDialogs"},"examples":"\non errorDialog what\n  if what is \"User level is too low to edit scripts.\" \n  then set userLevel to 5\nend errorDialog","demo":"on errorDemo\n   set the cantDelete of this card to true\n   set lockErrorDialogs to true\n   doMenu \"Delete Card\"\n end errorDemo\n <br><br>\n\n -- handler in the script of this card\n on <b>errorDialog<\/b> 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":["errorDialog errorMes"],"10":["\rerrorMessageText is"]}}