Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
errorDialog errorMessageText
Handler: on errorDialog whatText
statements
end errorDialog
HyperCard sends the errorDialog
message and its text to the current card if it encounters an error when the lockErrorDialogs
property is set true
. errorMessageText
is the contents of the error dialog box that would be displayed if the lockErrorDialogs
property were false
.
on errorDialog what
if what is "User level is too low to edit scripts."
then set userLevel to 5
end errorDialog
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
put "Hello world" -- built-in command
get total(field 1) -- function call
global HelpInfo -- keyword
System messages
Version 0.7b1 (March 24, 2022)