TUGAS 2.3 MEMBUAT APLIKASI PERHITUNGAN GAJI TANPA KEYPRESS PROSES

TUGAS BAHASA PEMROGRAMAN 2.3


TUGAS 2.3

Private Sub cmdkeluar_Click()
Unload Me
End Sub

Private Sub cmdproses_Click()
txtgk = Val(Txtgp) + Val(Txttun) - Val(txtpot)
txtpjk = Val(txtgk) * 0.25
txtgd = Val(txtgk) - Val(txtpjk)
End Sub

Private Sub cmdulang_Click()
Txtgp = ""
Txttun = ""
txtpot = ""
txtgk = ""
txtpjk = ""
txtgd = ""
Txtgp.SetFocus
End Sub


Private Sub Txtgp_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txttun.SetFocus
End If
End Sub



Private Sub Txttun_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtpot.SetFocus
End If
End Sub