Tugas 3.3 BP1

Private Sub Cmdproses_Click()
Dim S As String
Txttm.Text = "20" & Left(Txtnpm, 2)
S = Mid(Txtnpm, 3, 1)
If S = "1" Then
txtjur = "Sistem Informasi"
txtps = "Diploma Dua"
ElseIf S = "2" Then
txtjur = "Manajemen Informatika"
txtps = "Strata Satu"
ElseIf S = "3" Then
txtjur = "Tehnik Informatika"
txtps = "Diploma Tiga"
ElseIf S = "4" Then
txtjur = "Manajemen & Komp. Akuntansi"
txtps = "Diploma Empat"
End If
txturut = Right(Txtnpm.Text, 4)
End Sub

Private Sub Cmdkeluar_Click()
Unload Me
End Sub


Private Sub Txtnama_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txtnpm.SetFocus
End If
End Sub

Private Sub CmdBatal_Click()
Txtnama = ""
Txtnpm = ""
txtjur = ""
txtps = ""
txturut = ""
Txttm = ""
End Sub



Komentar

Postingan populer dari blog ini

CARA MEMBUAT AKUN BBM DAN CONTOH

Cara cek shutter count kamera DSLR canon dengan akurat

STMIK Pringsewu Laksanakan POSDIKTI Bagi Mahasiswa Baru 2017