data buku

untuk mengetahui nama pengarang,tahun terbit serta judul bukunya menggynakan rumus :

Private Sub Command1_Click()
Dim a, judulbuku, pengarang, penerbiT, asstring
Text4.Text = “20” & Right(Text1.Text, 2)
a = Mid(Text1.Text, 3, 3)
If a = “sim” Then
judulbuku = “sistem informasi menejemen”
ElseIf a = “edp” Then
judulbuku = “elektronik data processing”
ElseIf a = “mnj” Then
judulbuku = “manajemen”
ElseIf a = “cdr” Then
judulbuku = “coreldraw”
ElseIf a = “rlp” Then
judulbuku = “rekayasa perangkat lunak”
End If
Text2.Text = judulbuku
a = Mid(Text1.Text, 3, 3)
If a = “sim” Then
pengarang = “ndra setiawan”
ElseIf a = “edp” Then
pengarang = “desti istiqoma”
ElseIf a = “mnj” Then
pengarang = “sandi fitra jaya”
ElseIf a = “cdr” Then
pengarang = “tri indah sari”
ElseIf a = “rlp” Then
pengarang = “ernita sari”
End If
Text3.Text = pengarang
a = Mid(Text1.Text, 3, 3)
If a = “sim” Then
harga = “75900”
ElseIf a = “edp” Then
harga = “62000”
ElseIf a = “mnj” Then
harga = “43000”
ElseIf a = “cdr” Then
harga = “53000”
ElseIf a = “rlp” Then
harga = “83000”
End If
Text6.Text = harga
a = Left(Text1.Text, 1)
If a = “a” Then
penerbiT = “andi offset yogyakarta”
ElseIf a = “i” Then
penerbiT = “indah surabaya”
ElseIf a = “s” Then
penerbiT = “salemba empat”
ElseIf a = “e” Then
penerbiT = “elek media komputindo”
ElseIf a = “m” Then
penerbiT = “maxicom”
Text5.Text = penerbiT
End If
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

 

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 )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s