Składnia
messagebox(text: string, caption: string, flags: number): integerArgumenty
| Nazwa | Typ | Opis |
|---|---|---|
text | string | Message text. |
caption | string | Window caption. |
flags | number | Numeric message box flags. |
Zwroty
| Nazwa | Typ | Opis |
|---|---|---|
result | integer | Integer 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)