Tugas NIDN Gaji Pokok

TUGAS 3

 

Private Sub Combo1_Click()

Dim gajipokok, pajak, tunjangan, total As Variant
Select Case Combo1.Text
Case “I”
gajipokok = 3000000
tunjangan = 250000

Case “II”
gajipokok = 25000000
tunjangan = 300000

Case “III”
gajipokok = 4000000
tunjangan = 430000

Case “IV”
gajipokok = 4000000
tunjangan = 400000

Case Else
gajipokok = 0
tunjangan = 0
End Select
total = gajipokok + tunjangan
pajak = total * 0.1
Text3 = gajipokok
Text4 = tunjangan
Text5 = pajak
Text6 = total – pajak

End Sub

Private Sub Command1_Click()
Text1 = “”
Text2 = “”
Combo1 = “”
Text3 = “”
Text4 = “”
Text5 = “”
Text6 = “”

End Sub

Private Sub Command2_Click()
Text1 = “”
Text2 = “”
Combo1 = “”
Text3 = “”
Text4 = “”
Text5 = “”
Text6 = “”

End Sub

Private Sub Command3_Click()
End

End Sub

Private Sub Form_Load()
Combo1.AddItem “I”
Combo1.AddItem “II”
Combo1.AddItem “III”
Combo1.AddItem “IV”

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 )

Connecting to %s