Синтаксис
messagebox(text: string, caption: string, flags: number): integerАргументы
| Имя | Тип | Описание |
|---|---|---|
text | string | Message text. |
caption | string | Window caption. |
flags | number | Numeric message box flags. |
Возвраты
| Имя | Тип | Описание |
|---|---|---|
result | integer | Integer result code returned by the message box. |
Описание
Shows a Windows message box with text, caption, and numeric flags, then returns the integer result code.
Вызывай с 3 параметрами: text, caption, flags. Таблица аргументов показывает обязательные значения и настройки поведения.
Возвращает result (integer). Используй таблицу возвращаемых значений, чтобы отличать успех, nil и обрабатываемые ошибки.
Пример
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)