Miscellaneous

messagebox

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

Cú pháp

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

Đối số

TênKiểuMô tả
textstringMessage text.
captionstringWindow caption.
flagsnumberNumeric message box flags.

Giá trị trả về

TênKiểuMô tả
resultintegerInteger 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)