alert

(alert message [title [mode]])

This function displays a message in an Alert dialog box. To display Alert Boxes with certain icons like Exclamation, Question, Stop, or Information, specify the argument mode.

Arguments

message is a string to be displayed in the dialog box.

title is an optional string to be displayed in the header of the box.

mode is an optional string to specify the type of the box.

The following shows the various system icons that you can use:

Mode Symbol Buttons Return Value
""

OK nil
"STOP"
OK nil
"EXCLAMATION"
OK nil
"INFORMATION"
OK nil
"QUESTION"
Yes, No T, nil

Examples

: (alert "This shows an example of an alert box." "Example" "INFORMATION")

: (alert "Continue?" "What next..." "QUESTION")