Miscellaneous

messagebox

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

문법

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

인수

이름타입설명
textstringMessage text.
captionstringWindow caption.
flagsnumberNumeric message box flags.

반환값

이름타입설명
resultintegerInteger 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)