Posted on

DATA BUKU STMIK PRINGSEWU 2 (Tugas 3 VB1)

Gambar

Private Sub cmdbatal_Click()
txtkode.SetFocus
txtjb.Text = “”
txtpg.Text = “”
txtthn.Text = “”
txtpb.Text = “”
txtharga.Text = “”
End Sub

Private Sub cmdkeluar_Click()
End
End Sub

Private Sub cmdlagi_Click()
txtkode.SetFocus
txtjb.Text = “”
txtpg.Text = “”
txtthn.Text = “”
txtpb.Text = “”
txtharga.Text = “”
End Sub

Private Sub cmdproses_Click()
Dim A, jb, pg, th, pb, h As Integer
txtthn.Text = “20” & Mid(txtkode, 5, 2)
A = Left(txtkode, 3)
If A = “SIM” Then
jb = “Sistem Informasi Manajemen”
ElseIf A = “EDP” Then
jb = “Elektronik Data Processing”
ElseIf A = “MNJ” Then
jb = “Manajemen”
ElseIf A = “CDR” Then
jb = “Coreldraw”
ElseIf A = “RPL” Then
jb = “Rekayasa Perangkat Lunak”
End If
txtjb.Text = jb

A = Left(txtkode, 3)
If A = “SIM” Then
pg = “Fadiya Ulfa”
ElseIf A = “EDP” Then
pg = “Nurul Agustina”
ElseIf A = “MNJ” Then
pg = “Riyan Hidayat”
ElseIf A = “CDR” Then
pg = “Siti Nur Khotimah”
ElseIf A = “RPL” Then
pg = “Winda Ertianti”
End If
txtpg.Text = pg

A = Right(txtkode, 1)
If A = “A” Then
pb = “Andi Offset Jogjakarta”
ElseIf A = “I” Then
pb = “Indah Surabaya”
ElseIf A = “S” Then
pb = “Salemba Empat”
ElseIf A = “E” Then
pb = “Elexmedia Komputindo”
ElseIf A = “M” Then
pb = “Maxicom”
End If
txtpb.Text = pb

A = Left(txtkode, 3)
If A = “SIM” Then
hg = “79500”
ElseIf A = “EDP” Then
hg = “62000”
ElseIf A = “MNJ” Then
hg = “42000”
ElseIf A = “CDR” Then
hg = “53000”
ElseIf A = “RPL” Then
hg = “83000”
End If
txtharga.Text = hg
End Sub

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s