tugas 2.4 aplikasi perhitungan gaji menggunakan keypress
tugas 2.4
Private Sub Cmdkeluar_Click()
End
End Sub
Private Sub Cmdproses_Click()
Txtgk = Val(Txtgp) + Val(Txttj) - Val(Txtpt)
Txtpj = Val(Txtgk) * 0.1
Txtgd = Val(Txtgk) - Val(Txtpj)
End Sub
Private Sub Cmdulang_Click()
Txtgp = ""
Txttj = ""
Txtpt = ""
Txtgk = ""
Txtpj = ""
Txtgd = ""
End Sub
Private Sub Txtgp_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txttj.SetFocus
End If
End Sub
Private Sub Txtpt_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txtgk = Val(Txtgp) + Val(Txttj) - Val(Txtpt)
Txtpj = Val(Txtgk) * 0.1
Txtgd = Val(Txtgk) - Val(Txtpj)
End If
End Sub
Private Sub Txttj_Change()
If KeyAscii = 13 Then
Txtpt.SetFocus
End If
End Sub
Private Sub Txttj_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txtpt.SetFocus
End If
End Sub
Private Sub Cmdkeluar_Click()
End
End Sub
Private Sub Cmdproses_Click()
Txtgk = Val(Txtgp) + Val(Txttj) - Val(Txtpt)
Txtpj = Val(Txtgk) * 0.1
Txtgd = Val(Txtgk) - Val(Txtpj)
End Sub
Private Sub Cmdulang_Click()
Txtgp = ""
Txttj = ""
Txtpt = ""
Txtgk = ""
Txtpj = ""
Txtgd = ""
End Sub
Private Sub Txtgp_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txttj.SetFocus
End If
End Sub
Private Sub Txtpt_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txtgk = Val(Txtgp) + Val(Txttj) - Val(Txtpt)
Txtpj = Val(Txtgk) * 0.1
Txtgd = Val(Txtgk) - Val(Txtpj)
End If
End Sub
Private Sub Txttj_Change()
If KeyAscii = 13 Then
Txtpt.SetFocus
End If
End Sub
Private Sub Txttj_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Txtpt.SetFocus
End If
End Sub
Komentar
Posting Komentar