Memeriksa Tipe Kalender

Memeriksa apakah di PC Anda menggunakan kalendar Masehi (vbCalGreg) atau kalender Hijriah (vbCalHijri) menggunakan DateTime.Calendar.

Persiapan:
1. Buat 1 Project baru dengan 1 Form dan 1 Commandbutton.
2. Ketik coding berikut ke dalam editor form yang bertalian.
Ketik coding berikut pada Form.

Code:

Private Sub Command1_Click()
If DateTime.Calendar = vbCalGreg Then
MsgBox “Kalender Masehi!”, vbInformation, _
“Masehi”
Else
MsgBox “Kalender Hijriah!”, vbInformation, _
“Hijriah”
End If
End Sub

1 Komentar

  1. […] lain, Tombol dari coding, Database1, Database2, Database3, Date and time, Date and time2, Date and time3, Date and time4, Date and time5, Date and time6, Date and time7, Date and […]


Comments RSS TrackBack Identifier URI

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s