Cú pháp
messagebox(text: string, caption: string, flags: number): integerĐối số
| Tên | Kiểu | Mô tả |
|---|---|---|
text | string | Message text. |
caption | string | Window caption. |
flags | number | Numeric message box flags. |
Giá trị trả về
| Tên | Kiểu | Mô tả |
|---|---|---|
result | integer | Integer result code returned by the message box. |
Mô tả
Shows a Windows message box with text, caption, and numeric flags, then returns the integer result code.
Goi voi 3 parameter: text, caption, flags. Bang arguments giai thich gia tri nao bat buoc va gia tri nao chi tinh chinh hanh vi.
Tra ve result (integer). Dung bang returns de tach gia tri thanh cong, ket qua nil va loi co the xu ly.
Ví dụ
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)