TUGAS 4 yang ke13

LINTANG13

Private Sub Cmdbatal_Click()

txtkode.SetFocus

txtkode.Text = “”

txtjb.Text = “”

txtpeng.Text = “”

txttt.Text = “”

txtpenerbit.Text = “”

txtharga.Text = “”

End Sub

 

Private Sub Cmdkeluar_Click()

End

End Sub

 

Private Sub Cmdlagi_Click()

txtkode.SetFocus

txtkode.Text = “”

txtjb.Text = “”

txtpeng.Text = “”

txttt.Text = “”

txtpenerbit.Text = “”

txtharga.Text = “”

End Sub

Private Sub Cmdproses_Click()

Dim S As String

txttt.Text = “20” & Right(txtkode, 2)

S = Mid(txtkode, 3, 3)

If S = “SIM” Then

txtjb.Text = “Sistem Informasi Manajemen”

txtpeng.Text = “Andra Setiawan”

txtharga.Text = “75900”

 

ElseIf S = “EDP” Then

txtjb.Text = “Elektronik Data Processing”

txtpeng.Text = “Desi Istiqomah”

txtharga.Text = “62000”

 

ElseIf S = “MNJ” Then

txtjb.Text = “Manajemen”

txtpeng.Text = “Sandy Fitra jaya”

txtharga.Text = “42000”

 

ElseIf S = “CDR” Then

txtjb.Text = “Corel Draw”

txtpeng.Text = “Tri Indah Sari”

txtharga.Text = “53000”

 

ElseIf S = “RPL” Then

txtjb.Text = “Rekayasa Perangkat Lunak”

txtpeng.Text = “Ernita Sari”

txtharga.Text = “83000”

End If

S = Left(txtkode, 1)

If S = “A” Then

txtpenerbit.Text = “Andi Offset Yogyakarta”

ElseIf S = “I” Then

txtpenerbit.Text = “Indah Surabaya”

ElseIf S = “S” Then

txtpenerbit.Text = “Salemba Empat”

ElseIf S = “E” Then

txtpenerbit.Text = “Elek Media Komputindo”

ElseIf S = “M” Then

txtpenerbit.Text = “Maxicom”

End If

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 )

w

Connecting to %s