Miscellaneous

messagebox

Shows a Windows message box with text, caption, and numeric flags, then returns the integer result code.

Sintaxe

messagebox(text: string, caption: string, flags: number): integer

Argumentos

NomeTipoDescrição
textstringMessage text.
captionstringWindow caption.
flagsnumberNumeric message box flags.

Retornos

NomeTipoDescrição
resultintegerInteger 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)