kosong
End Sub
Private Sub cmdlagi_Click()
kosong
End Sub
Private Sub Form_Load()
Cbogolongan.AddItem "1"
Cbogolongan.AddItem "11"
Cbogolongan.AddItem "111"
Cbogolongan.AddItem "1V"
End Sub
Private Sub cmdkeluar_Click()
Unload Me
End Sub
Private Sub cbogolongan_Click()
Dim gapok, pajak, tunjangan, total As Variant
Select Case Cbogolongan.Text
Case "1"
gapok = 1500000
tunjangan = 150000
Case "11"
gapok = 2000000
tunjangan = 200000
Case "111"
gapok = 2500000
tunjangan = 250000
Case "1V"
gapok = 3000000
tunjangan = 300000
Case Else
gapok = 0
tunjangan = 0
End Select
total = gapok + tunjangan
pajak = total * 0.1
txtgapok.Text = gapok
txttunjangan.Text = pajak
txtpajak.Text = pajak
txttotal.Text = total - pajak
End Sub
Public Sub kosong()
txtnidn.SetFocus
txtnidn.Text = ""
txtnama.Text = ""
Cbogolongan.Text = ""
txtgapok.Text = ""
txttunjangan.Text = ""
txttotal.Text = ""
txtpajak.Text = ""
End Sub
Private Sub txtnidn_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtnama.SetFocus
End If
End Sub
0 komentar:
Posting Komentar