Laman

Selasa, 12 Desember 2017

Data buku
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 = "75900"
ElseIf K = "EDP" Or K = "edp" Then
J = "Elektronik Data Procesing"
P = "Nurul Agustina"
H = "62000"
ElseIf K = "MNJ" Or K = "mnj" Then
J = "Manajemen"
P = "Rian Hidayat"
H = "42000"
ElseIf K = "cdr" Or K = "CDR" Then
J = "Corel Draw"
P = "Siti Nur Khotimah"
H = "53000"
ElseIf K = "rpl" Or K = "RPL" Then
J = "Rekayasa Perangkat Lunak"
P = "Winda Erlianti"
H = "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, 4, 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()
Unload Me
End Sub


Tidak ada komentar:

Posting Komentar