Syntax
messagebox(text: string, caption: string, type: integer): integerArguments
| Name | Type | Description |
|---|---|---|
text | string | Text value used by the operation. |
caption | string | Window title shown on the message box. |
type | integer | Message box style and button configuration. |
Returns
| Name | Type | Description |
|---|---|---|
button | integer | Identifier for the button clicked by the user. |
Description
Shows a native message box and returns the clicked button id.
Call it with 3 parameter(s): text, caption, type. The argument table explains which values are required and which ones only refine the behavior.
It returns button (integer). Use the returns table to separate successful values from nil results and recoverable errors.
Example
Example call with placeholder values.
local result = messagebox("example", "example", 1)
print(result)