HURUF MUTU MAHASISWA STMIK PRINGSEWU

HURUF MUTU

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s