Tugas 13 Daftar Buku

Untitled

source code :

Private Sub Command1_Click()
Dim K, J, P, H, G As String
K = Mid(text1, 3, 3)
If K = “SIM” Or K = “sim” Then
J = “Sistem Informasi Manajemen”
P = “Andra Setiawan”
H = “Rp 75900”
ElseIf K = “EDP” Or K = “edp” Then
J = “Elektronik Data Procesing”
P = “Desi Istiqomah”
H = “Rp 62000”
ElseIf K = “MNJ” Or K = “mnj” Then
J = “Manajemen”
P = “Sandy Fitrajaya”
H = “Rp 42000”
ElseIf K = “cdr” Or K = “CDR” Then
J = “Corel Draw”
P = “Tri Indah Sari”
H = “Rp 53000”
ElseIf K = “rpl” Or K = “RPL” Then
J = “Rekayasa Perangkat Lunak”
P = “Ernita Sari”
H = “Rp 83000”
End If
text2.Text = J
text3.Text = P
text6.Text = H
K = Left(text1, 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” & Right(text1, 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