Miscellaneous

messagebox

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

Syntaxe

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

Arguments

NomTypeDescription
textstringMessage text.
captionstringWindow caption.
flagsnumberNumeric message box flags.

Retours

NomTypeDescription
resultintegerInteger result code returned by the message box.

Description

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

Appelle le avec 3 parametre(s): text, caption, flags. La table des arguments indique les valeurs requises et celles qui affinent le comportement.

Il renvoie result (integer). Utilise la table des retours pour separer les valeurs reussies, les resultats nil et les erreurs recuperables.

Exemple

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)