Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txtnpm.SetFocus
End If
End Sub
Private Sub Combatal_Click()
Txtnama.SetFocus
Txtnama = “”
Txtnpm = “”
Txtjur = “”
Txtps = “”
Txttm = “”
Txtnu = “”
End Sub
Private Sub Comkeluar_Click()
Unload Me
End Sub
Private Sub Comlagi_Click()
Txtnama.SetFocus
Txtnama = “”
Txtnpm = “”
Txtjur = “”
Txtps = “”
Txttm = “”
Txtnu = “”
End Sub
Private Sub Comproses_Click()
Dim s As String
Txttm.Text = “20” & Left(Txtnpm.Text, 2)
s = Mid(Txtnpm.Text, 3, 1)
If s = “1” Then
Txtjur.Text = “Sistem Informasi”
ElseIf s = “2” Then
Txtjur.Text = “Manajemen Informatika”
ElseIf s = “3” Then
Txtjur.Text = “Teknik Informatika”
ElseIf s = “4” Then
Txtjur.Text = “Manajemen & komp.akuntansi”
End If
s = Mid(Txtnpm.Text, 4, 2)
If s = “01” Then
Txtps.Text = “Strata Satu”
ElseIf s = “02” Then
Txtps.Text = “Diploma Empat”
ElseIf s = “03” Then
Txtps.Text = “Diploma Tiga”
ElseIf s = “04” Then
Txtps.Text = “Diploma dua”
End If
Txtnu.Text = Right(Txtnpm.Text, 3)
End Sub
Private Sub Form_Activate()
Txtnama.SetFocus
Txtnama = “”
Txtnpm = “”
Txtjur = “”
Txtps = “”
Txttm = “”
Txtnu = “”
End Sub
Private Sub Txtnama_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txtnpm.SetFocus
End If
End Sub