Documentación de Real

Miscellaneous

messagebox

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

Sintaxis

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

Argumentos

NombreTipoDescripción
textstringMessage text.
captionstringWindow caption.
flagsnumberNumeric message box flags.

Retornos

NombreTipoDescripción
resultintegerInteger result code returned by the message box.

Descripción

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

Llamalo con 3 parametro(s): text, caption, flags. La tabla de argumentos explica que valores son obligatorios y cuales refinan el comportamiento.

Devuelve result (integer). Usa la tabla de retornos para separar valores correctos, resultados nil y errores recuperables.

Ejemplo

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)