 |
THE HYPERCARD CENTER |
|
|
Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
lockErrorDialogsset [the] lockErrorDialogs to trueOrFalse
The lockErrorDialogs property returns or sets whether HyperCard, on encountering an error, presents an error dialog box. This property defaults to false at idle time, meaning that error dialogs usually appear. When this property is set to true , HyperCard, on encountering an error, does not display an error dialog box; instead, it sends the message errorDialog errorMessageText to the current card. ErrorMessageText contains the text of the error dialog box.
Examplesset lockErrorDialogs to true set lockErrorDialogs to false
Demo Scripton errorDemo set the cantDelete of this card to true set lockErrorDialogs to true doMenu "Delete Card" end errorDemo -- handler in the script of this card on errorDialog whichError answer "Had lockErrorDialogs not been set to true," &&¬ "HyperCard would have displayed the error, “" & whichError & "”" end errorDialog
Related Topics Placeholders
trueOrFalseAny expression that evaluates to the HyperTalk and AppleScript constants true or false . For example: true false the hilite of bg btn "Yes" fld "Zip" contains "95014" the short name of this stack is "Fred"
HyperTalk Reference
|