MESSAGEBOX: Difference between revisions
Jump to navigation
Jump to search
m Remove `lower case` requirement |
No edit summary |
||
| Line 20: | Line 20: | ||
{{PageAvailability}} | {{PageAvailability}} | ||
<!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no --> | |||
<gallery widths="48px" heights="48px" mode="nolines"> | |||
File:Qb64.png|'''none''' | |||
File:Qbpe.png|'''v3.4.0''' | |||
File:Apix.png | |||
File:Win.png|'''yes''' | |||
File:Lnx.png|'''yes''' | |||
File:Osx.png|'''yes''' | |||
</gallery> | |||
<!-- additional availability notes go below here --> | |||
Latest revision as of 15:42, 18 February 2026
The _MESSAGEBOX statement displays a message dialog box, which presents a message to the user.
Syntax
- _MESSAGEBOX [title$][, message$][, iconType$]
Parameters
- title$ is the dialog box title
- message$ is the dialog box message
- iconType$ is the icon type that is displayed inside the dialog box (this can be "info", "warning", or "error")
Description
- All parameters are optional
- Not using any parameters will show a blank dialog box with an OK button
- The dialog box automatically becomes a modal window if the application window is visible
Availability
-
none
-
v3.4.0
-
yes
-
yes
-
yes
Examples
- Example
- Hello, world with common dialogs
username$ = _INPUTBOX$("Hello App", "Enter your name:", "anonymous") IF username$ <> "" THEN _MESSAGEBOX "Hello App", "Hello " + username$, "info" |
See also
- _NOTIFYPOPUP
- _MESSAGEBOX (function)
- _INPUTBOX$
- _SELECTFOLDERDIALOG$
- _COLORCHOOSERDIALOG
- _OPENFILEDIALOG$
- _SAVEFILEDIALOG$