Sintaxe
messagebox(text: string, caption: string, flags: number): integerArgumentos
| Nome | Tipo | Descrição |
|---|---|---|
text | string | Message text. |
caption | string | Window caption. |
flags | number | Numeric message box flags. |
Retornos
| Nome | Tipo | Descrição |
|---|---|---|
result | integer | Integer result code returned by the message box. |
Descrição
Shows a Windows message box with text, caption, and numeric flags, then returns the integer result code.
Chame com 3 parametro(s): text, caption, flags. A tabela de argumentos explica quais valores sao obrigatorios e quais refinam o comportamento.
Retorna result (integer). Use a tabela de retornos para separar valores bem sucedidos, nil e erros recuperaveis.
Exemplo
Show a Windows message box and read the integer result code returned by the dialog.
local result = messagebox("Real is ready.", "Real", 0)
print(result)