tugas 4

GAMBAR D

Private Sub cmdbatal_Click()
cbokode.SetFocus
cbokode.Text = “”
Txtjb.Text = “”
Txtpg.Text = “”
Txttt.Text = “”
Txtpn.Text = “”
Txthg.Text = “”

End Sub

Private Sub Cmdkeluar_Click()
End
End Sub

Private Sub Cmdlagi_Click()
cbokode.SetFocus
cbokode.Text = “”
Txtjb.Text = “”
Txtpg.Text = “”
Txttt.Text = “”
Txtpn.Text = “”
Txthg.Text = “”
End Sub

Private Sub Cmdproses_Click()
Dim jb, pg, pn, hg As String
Txttt.Text = “20” & Right(cbokode, 2)
S = Mid(cbokode, 3, 3)
If S = “SIM” Then
jb = “Sistem informasi manajemen”
pg = “YatiNurOktavia”
hg = “75900”
ElseIf S = “EDP” Then
jb = “Elektronik Data Processing”
pg = “Imam Tarmizi”
hg = “62000”
ElseIf S = “MNJ” Then
jb = “Manajemen”
pg = “Valentina Mariana Adiwianti”
hg = “42000”
ElseIf S = “CDR” Then
jb = “Corel Draw”
pg = “Riyan Suhandi”
hg = “53000”
ElseIf S = “RPL” Then
jb = “Rekayasa Perangkat Lunak”
pg = “Sinta UmpuSinga”
hg = “83000”
End If
Txtjb.Text = jb
Txtpg.Text = pg
Txthg.Text = hg
S = Mid(cbokode, 1, 1)
If S = “A” Then
pn = “Andi Offset Yogyakarta”
ElseIf S = “I” Then
pn = “Indah Surabaya”
ElseIf S = “S” Then
pn = “SalembaEmpat”
ElseIf S = “E” Then
pn = “Elek Media Komputindo”
ElseIf S = “M” Then
pn = “Maxicom”
End If
Txtpn.Text = pn

End Sub

Private Sub Form_Load()
cbokode.AddItem “A-SIM-01”
cbokode.AddItem “I-EDP-02”
cbokode.AddItem “S-MNJ-03”
cbokode.AddItem “E-CDR-04”
cbokode.AddItem “M-RPL-05”
End Sub

 

Advertisements

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s