Miscellaneous

messagebox

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

Söz dizimi

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

Argümanlar

AdTipAçıklama
textstringMessage text.
captionstringWindow caption.
flagsnumberNumeric message box flags.

Dönüşler

AdTipAçıklama
resultintegerInteger result code returned by the message box.

Açıklama

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

3 parametre ile cagir: text, caption, flags. Arguman tablosu hangi degerlerin zorunlu oldugunu ve hangilerinin davranisi incelttigini aciklar.

result (integer) dondurur. Basarili degerleri, nil sonuclari ve toparlanabilir hatalari ayirmak icin return tablosunu kullan.

Örnek

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)