Miscellaneous

messagebox

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

Składnia

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

Argumenty

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

Zwroty

NazwaTypOpis
resultintegerInteger result code returned by the message box.

Opis

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

Wywolaj z 3 parametrami: text, caption, flags. Tabela argumentow wyjasnia wartosci wymagane i te, ktore doprecyzowuja zachowanie.

Zwraca result (integer). Uzyj tabeli zwrotow, aby oddzielic wartosci sukcesu, wyniki nil i bledy do obsluzenia.

Przykład

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)