TUGAS 6

TUGAS 6 ADEL

Private Sub Command1_Click()
Dim K, J, P, H, G As String
K = Left(text1.Text, 3)
If K = “SIM” Or K = “sim” Then
J = “Sistem Informasi Manajemen”
P = “Fadiya Ulfa”
H = “Rp 75900?”
ElseIf K = “EDP” Or K = “edp” Then
J = “Elektronik Data Procesing”
P = “Nurul Agustina”
H = “Rp 62000?”
ElseIf K = “MNJ” Or K = “mnj” Then
J = “Manajemen”
P = “Rian Hidayat”
H = “Rp 42000?”
ElseIf K = “cdr” Or K = “CDR” Then
J = “Corel Draw”
P = “Siti Nur Khotimah”
H = “Rp 53000?”
ElseIf K = “rpl” Or K = “RPL” Then
J = “Rekayasa Perangkat Lunak”
P = “Winda Erlianti”
H = “Rp 83000?”
End If
Text2.Text = J
Text3.Text = P
Text6.Text = H
K = Right(text1.Text, 1)
If K = “A” Or K = “a” Then
G = “Andi Offset Yogyakarta”
ElseIf K = “i” Or K = “I” Then
G = “Indah Surabaya”
ElseIf K = “S” Or K = “s” Then
G = “Salemba Empat”
ElseIf K = “E” Or K = “e” Then
G = “Elek Media Komputindo”
ElseIf K = “M” Or K = “m” Then
G = “maxicom”
End If
Text5.Text = G
Text4.Text = “20” & Mid(text1.Text, 5, 2)
End Sub
Private Sub Command2_Click()
text1.SetFocus
text1 = “”
Text2 = “”
Text3 = “”
Text4 = “”
Text5 = “”
Text6 = “”
End Sub
Private Sub Command3_Click()
text1.SetFocus
text1 = “”
Text2 = “”
Text3 = “”
Text4 = “”
Text5 = “”
Text6 = “”
End Sub
Private Sub Command4_Click()
End
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