tugas 5

GAMBAR E

Private Sub Cmdbatal_Click()
Txtkode.SetFocus
Txtkode.Text = “”
Txtjb.Text = “”
Txtp.Text = “”
Txttt.Text = “”
Txtpn.Text = “”
Txtharga.Text = “”

End Sub

Private Sub Cmdkeluar_Click()
End
End Sub

Private Sub Cmdlagi_Click()
Txtkode.SetFocus
Txtkode.Text = “”
Txtjb.Text = “”
Txtp.Text = “”
Txttt.Text = “”
Txtpn.Text = “”
Txtharga.Text = “”

End Sub

Private Sub Cmdproses_Click()
Dim S As String
Txttt.Text = “20” & Mid(Txtkode, 5, 2)
S = Left(Txtkode, 3)
If S = “SIM” Then
Txtjb.Text = “Sistem Informasi Manajemen”
Txtp.Text = “Fadiya Ulfa”
Txtharga.Text = “75900”
ElseIf S = “EDP” Then
Txtjb.Text = “Elektronik Data Processing”
Txtp.Text = “Nurul Agustina”
Txtharga.Text = “62000”
ElseIf S = “MNJ” Then
Txtjb.Text = “Manajemen”
Txtp.Text = “Rian Hidayat”
Txtharga.Text = “42000”
ElseIf S = “CDR” Then
Txtjb.Text = “Corel Draw”
Txtp.Text = “Siti Nur Khotimah”
Txtharga.Text = “53000”
ElseIf S = “RPL” Then
Txtjb.Text = “Rekayasa Perangkat Lunak”
Txtp.Text = “Winda Erlianti”
Txtharga.Text = “83000”
End If
S = Right(Txtkode, 1)
If S = “A” Then
Txtpn.Text = “Andi Offset Yogyakarta”
ElseIf S = “I” Then
Txtpn.Text = “Indah Surabaya”
ElseIf S = “S” Then
Txtpn.Text = “Salemba Empat”
ElseIf S = “E” Then
Txtpn.Text = “Elek Media Komputindo”
ElseIf S = “M” Then
Txtpn.Text = “Maxicom”
End If

End Sub

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s