HURUF MUTU MAHASISWA STMIK PRINGSEWU

Untitled4

Private Sub Cbo_Click()

Dim nama, jurusan, HM As String

 

Select Case cbo.Text

Case “12100369”

nama = “AHMAD SODIKIN”

jurusan = “Sistem Informasi”

Case “12201111”

nama = “FAJAR DESWANTORO”

jurusan = “Manajemen Informatika”

Case “12201109”

nama = “AYU OKTAVIANI”

jurusan = “Manajemen Informatika”

End Select

txtnama.Text = nama

txtjr.Text = jurusan

txtquis.SetFocus

End Sub

 

Private Sub Cmdbatal_Click()

cbo.SetFocus

cbo.Text = “”

txtnama.Text = “”

txtjr.Text = “”

txtquis.Text = “”

txttugas.Text = “”

txtuts.Text = “”

txtuas.Text = “”

txtna.Text = “”

txtm.Text = “”

End Sub

 

Private Sub cmdk_Click()

End

End Sub

 

Private Sub cmdprs_Click()

Dim na As Integer

Dim HM As Variant

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

txtm.Text = HM

End Sub

 

Private Sub Form_Load()

cbo.AddItem “12100369”

cbo.AddItem “12201111”

cbo.AddItem “12201109”

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