(alert string)
Display this alert for the user.
This function displays a dialog box with your string (a custom message) and the OK button. To display more than one line of text, use the new-line character (\n) in the string. to separate lines of text.
Examples
Code | Returns |
---|---|
(alert "You must select an option") | You must select an option |
(alert "Select an option: \n M or F") |
Select an option: M or F |
NOTE Since all dialog boxes must accommodate small, 640 x 480-pixel displays, it's a good idea to keep the alert text brief and to the point.