Private Sub CMDBATAL_Click()
TXTKB.SetFocus
TXTKB.Text = “”
TXTNB.Text = “”
TXTJS.Text = “”
TXTTJ.Text = “”
TXTHJ.Text = “”
TXTTH.Text = “”
TXTSS.Text = “”
End Sub
Private Sub CMDKELUAR_Click()
Unload Me
End Sub
Private Sub CMDPROSES_Click()
Dim NM As String
NM = TXTKB.Text
If NM = “HT002S” Then
TXTNB.Text = “SOUND SISTEM”
TXTHJ.Text = “350000”
ElseIf NM = “HB002C” Then
TXTNB.Text = “COMPACT”
TXTHJ.Text = “480000”
ElseIf NM = “HB002T” Then
TXTNB.Text = “TAPE”
TXTHJ.Text = “275000”
End If
TXTJS.SetFocus
End Sub
Private Sub txtjs_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TXTTJ.SetFocus
End If
End Sub
Private Sub TXTTH_Click()
TXTTERBILANG.Text = TERBILANG(Val(TXTTH.Text))
End Sub
Private Sub TXTTJ_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Dim JS, TJ As Integer
TXTSS.Text = Val(TXTJS.Text) – Val(TXTTJ.Text)
TXTTH.Text = Val(TXTTJ.Text) * Val(TXTHJ.Text)
TXTTH.SetFocus
End If
End Sub
Filed under: Uncategorized |
Tinggalkan komentar