Söz dizimi
messagebox(text: string, caption: string, flags: number): integerArgümanlar
| Ad | Tip | Açıklama |
|---|---|---|
text | string | Message text. |
caption | string | Window caption. |
flags | number | Numeric message box flags. |
Dönüşler
| Ad | Tip | Açıklama |
|---|---|---|
result | integer | Integer 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)