![]() ![]() ![]() vbYesNoCancel 3 Display Yes, No, and Cancel buttons. vbAbortRetryIgnore 2 Display Abort, Retry, and Ignore buttons. ![]() vbOKCancel 1 Display OK and Cancel buttons. ![]() The first group of values (0–5) describes the number and type of buttons displayed in the dialog box The second group (16, 32, 48, 64) describes the icon style The third group (0, 256, 512, 768) determines which button is the default ġ1 First group Determines which buttons to display Constant Valueĭescription vbOKOnly Display OK button only. Judul dialog box, jika tidak ditentukan maka nama program yang akan ditampilkan.ġ0 The buttons argument The buttons argument is formed by five groups of values. Ekspresi numerik yang menentukan jenis tombol, icon, dll. Panjang maksimum prompt kira-kira 1024 karakter, tergantung lebar karakter yang digunakan. IntResponse = MsgBox("Are you sure you want to quit?", vbYesNo + vbQuestion, "Quit")Ĥ Msgbox “Anda baru saja menekan tombol”, VbExclamation, “Pemberitahuan”ĥ Inthasil = Msgbox(“Tidak dapat mengakses disket”, 16 + 2,”Warning”)Ħ Msgbox “Selamat anda berhasil”, vbinformation,”Berita”ħ Inthasil = Msgbox(“Tidak dapat mengakses disket”, 16 + 2,”Warning”)Ĩ Message box Message Box / Kotak pesan adalah kotak dialog khusus yang digunakan untuk menampilkan informasi kepada pengguna User tidak bisa mengetik apapun pada message box MsgBox adalah perintah yang digunakan untuk menampilkan message box.ĩ syntax Syntax: MsgBox “prompt” Presentasi berjudul: "Algoritma & PEMROGRAMAN 2B (Visual basic)"- Transcript presentasi:ġ Algoritma & PEMROGRAMAN 2B (Visual basic)ģ intResponse = MsgBox("Are you sure you want to quit ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |