Selasa, 12 Desember 2017

TUGAS 3.2



Private Sub Cmdbatal_Click()
Txtnama.SetFocus
Txtnama.Text = ""
Txtnpm.Text = ""
Txtjur.Text = ""
Txtps.Text = ""
Txttm.Text = ""
Txtnorut.Text = ""
End Sub

Private Sub Cmdkeluar_Click()
Unload Me
End Sub

Private Sub Cmdlagi_Click()
Txtnama.SetFocus
Txtnama.Text = ""
Txtnpm.Text = ""
Txtjur.Text = ""
Txtps.Text = ""
Txttm.Text = ""
Txtnorut.Text = ""
End Sub
Private Sub Cmdproses_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 = "Tehnik 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 Tiga"
ElseIf S = "03" Then
Txtps.Text = "Diploma Dua"
End If
Txtnorut.Text = Right(Txtnpm.Text, 3)
End Sub
Private Sub Form_activate()
Txtnama.SetFocus
Txtnama.Text = ""
Txtnpm.Text = ""
Txtjur.Text = ""
Txtps.Text = ""
Txttm.Text = ""
Txtnorut.Text = ""
End Sub

Private Sub Txtnama_Keypress(Keyascii As Integer)
If Keyascii = 13 Then
Txtnpm.SetFocus
End If
End Sub

Tidak ada komentar:

Posting Komentar

Tutorial

TUTORIAL THRESHOLDING CITRA DIGITAL (PROGRAM MATLAB) Thresholding merupakan salah satu metode segmentasi citra dimana prosesnya did...