MESSAGEBOX: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
m (Re-order description) |
m (Add missing bracket) |
||
Line 4: | Line 4: | ||
{{PageSyntax}} | {{PageSyntax}} | ||
: '''_MESSAGEBOX''' [{{Parameter|title$}}][, {{Parameter|message$}}[, {{Parameter|iconType$}}] | : '''_MESSAGEBOX''' [{{Parameter|title$}}][, {{Parameter|message$}}][, {{Parameter|iconType$}}] | ||
Revision as of 18:47, 29 October 2022
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
- "info", "warning", or "error" when used are expected to be in lower case
- The dialog box automatically becomes a modal window if the application window is visible
Availability
- QB64-PE v3.4 and up
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)
- _SELECTFOLDERDIALOG$
- _INPUTBOX$
- _OPENFILEDIALOG$
- _SAVEFILEDIALOG$