# (alert string)
[GstarCAD 2012](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md)
<a id="120"></a>
## (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.
**Tell me about...**
[(\*error\* string)](%28-error-%20string%29.md)
[LISP Compatibility](../LISP%20Compatibility.md)
[Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md)
<a id="holding"></a>
## Other versions with matching text
[GstarCAD 2011](../../../../2011/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28alert%20string%29.md)