Posted on

DATA BUKU STMIK PRINGSEWU (COMBO)/ (Tugas 3 VB1)

 

Gambar

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

Private Sub cmdkeluar_Click()
End
End Sub

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

Private Sub cmdproses_Click()
txtthn.Text = “20” & Right(txtkode, 2)
A = Mid(cmbkode, 3, 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 = Mid(cmbkode, 3, 3)
If A = “SIM” Then
pg = “Yati Nur Oktavia”
ElseIf A = “EDP” Then
pg = “Imam Tarmizi”
ElseIf A = “MNJ” Then
pg = “Valentina Mariana Adiwianti”
ElseIf A = “CDR” Then
pg = “Riyan Suhandi”
ElseIf A = “RPL” Then
pg = “Sinta Umpu Singa”
End If
txtpg.Text = pg

A = Left(cmbkode, 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 = Mid(cmbkode, 3, 3)
If A = “SIM” Then
txtharga = “79500”
ElseIf A = “EDP” Then
txtharga = “62000”
ElseIf A = “MNJ” Then
txtharga = “42000”
ElseIf A = “CDR” Then
txtharga = “53000”
ElseIf A = “RPL” Then
txtharga = “83000”
End If
txtthn.Text = “20” & Right(cmbkode.Text, 2)
End Sub

Private Sub Form_Load()
cmbkode.AddItem “A-SIM-01”
cmbkode.AddItem “I-EDP-02”
cmbkode.AddItem “S-MNJ-03”
cmbkode.AddItem “E-CDR-04”
cmbkode.AddItem “M-RPL-05”
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