TUGAS 2

TUGAS 2 ADEL

Private Sub CmdBatal_Click()
Txtnama.SetFocus
Txtnama = “”
Txtnpm = “”
Txtjr = “”
Txtprodi = “”
Txttm = “”
Txturut = “”
End Sub

Private Sub CmdKeluar_Click()
Unload Me
End Sub

Private Sub CmdLagi_Click()
Txtnama.SetFocus
Txtnama = “”
Txtnpm = “”
Txtjr = “”
Txtprodi = “”
Txttm = “”
Txturut = “”
End Sub

Private Sub CmdProses_Click()
Dim JR, PS As String
Txttm = “20” & Left(Txtnpm, 2)
S = Mid(Txtnpm, 3, 1)
If S = “1” Then
JR = “SISTEM INFORMASI”
PS = “STRATA SATU”
ElseIf S = “2” Then
JR = “MANAJEMEN INFORMATIKA”
PS = “DIPLOMA EMPAT”
ElseIf S = “3” Then
JR = “TEHNIK INFORMATIKA”
PS = “DIPLOMA TIGA”
ElseIf S = “4” Then
JR = “KOMPUTER AKUNTANSI”
PS = “DIPLOMA DUA”
End If
Txtjr = JR
Txtprodi = PS
Txturut = Right(Txtnpm, 5)
End Sub

tugas 2.2
Private Sub Txtnpm_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Dim JR, PS As String
Txttm = “20” & Left(Txtnpm, 2)
S = Mid(Txtnpm, 3, 1)
If S = “1” Then
JR = “SISTEM INFORMASI”
PS = “STRATA SATU”
ElseIf S = “2” Then
JR = “MANAJEMEN INFORMATIKA”
PS = “DIPLOMA EMPAT”
ElseIf S = “3” Then
JR = “TEHNIK INFORMATIKA”
PS = “DIPLOMA TIGA”
ElseIf S = “4” Then
JR = “KOMPUTER AKUNTANSI”
PS = “DIPLOMA DUA”
End If
Txtjr = JR
Txtprodi = PS
Txturut = Right(Txtnpm, 5)
End If
End Sub

Iklan

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 )

Foto Google+

You are commenting using your Google+ 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 )

Connecting to %s