Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
set
[the
] lockErrorDialogs to ¬ trueOrFalse
The lockErrorDialogs
property returns or sets whether HyperCard, on encountering an error, presents an error dialog box. 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.
set lockErrorDialogs to true
set lockErrorDialogs to false
on 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
true
or false
. true
false
the hilite of bg btn "Yes"
fld "Zip" contains "95014"
the short name of this stack is "Fred"
Properties
Version 0.7b1 (March 24, 2022)