RSS

program huruf mutu

QWER

 

Private Sub cmdbatal_Click()
cbonpm.SetFocus
cbonpm.Text = “”
txtnama.Text = “”
Txtjurusan.Text = “”
txtquis.Text = “”
Txttugas.Text = “”
txtuts.Text = “”
txtuas.Text = “”
Txtna.Text = “”
txthm.Text = “”
End Sub

Private Sub cmdproses_Click()
Dim na As Integer
Dim hm As String
quis = Val(txtquis.Text)
tugas = Val(Txttugas.Text)
uts = Val(txtuts.Text)
uas = Val(txtuas.Text)
na = (quis + tugas + uts + uas) / 4
Txtna.Text = na

Select Case Txtna.Text
Case Is > 80
hm = “A”
Case Is > 70
hm = “B”
Case Is > 60
hm = “C”
Case Is > 50
hm = “D”
Case Is < 50
hm = “E”
End Select
txthm.Text = hm
End Sub
Private Sub Cmdkeluar_Click()
End
End Sub

Private Sub form_load()
cbonpm.AddItem “12100329”
cbonpm.AddItem “12100330”
cbonpm.AddItem “12100331”
cbonpm.AddItem “12100336”
cbonpm.AddItem “12100335”
cbonpm.AddItem “12201100”
End Sub

Private Sub cbonpm_click()
Select Case cbonpm.Text
Case “12100329”
nama = “CITA DENI ARTIKA”
jurusan = “Sistem Informasi”
Case “12100330”
nama = “SEKTI RESMI ASIH”
jurusan = “Sistem Informasi”
Case “12100331”
nama = “RITA RAHAYU”
jurusan = “Sistem Informasi”
Case “12100336”
nama = “YAYUK ARINI”
jurusan = “Sistem Informasi”
Case “12100335”
nama = “SITI FATONAH”
jurusan = “Sistem Informasi”
Case “12201101”
nama = “SITI NURHAYATI”
jurusan = “Sistem Informasi”
End Select
txtnama.Text = nama
Txtjurusan.Text = jurusan
txtquis.SetFocus
End Sub

Private Sub txtquis_keypress(keyascii As Integer)
If keyascii = 13 Then
Txttugas.SetFocus
End If
End Sub

Private Sub Txttugas_keypress(keyascii As Integer)
If keyascii = 13 Then
txtuts.SetFocus
End If
End Sub

Private Sub txtuts_keypress(keyascii As Integer)
If keyascii = 13 Then
txtuas.SetFocus
End If
End Sub

 

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

 
%d blogger menyukai ini: