Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

If Check1.

Value = 1 Then
Text2.Text = Val(Text1.Text) * 13000
Else
Text2.Text = 0
End If
Text5.Text = Format(Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text),
"Rp ###,###.#0")

If Check2.Value = 1 Then
Text3.Text = Val(Text1.Text) * 10000
Else
Text3.Text = 0
End If
Text5.Text = Format(Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text),
"Rp ###,###.#0")

If Check3.Value = 1 Then
Text4.Text = Val(Text1.Text) * 15000
Else
Text4.Text = 0
End If
Text5.Text = Format(Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text),
"Rp ###,###.#0")

Private Sub Text5_Change()


Text5.Text = Format(Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text),
"Rp ###,###.#0")
End Sub

Private Sub Text6_change()


Text7.Text = Format(Val(Text6.Text) - (Val(Text2.Text) + Val(Text3.Text) +
Val(Text4.Text)), "Rp ###,###.#0")
End Sub
Private Sub PERTAMAXTURBO_Click()
If PERTAMAXTURBO.Value = 1 Then
Text4.Text = Val(Text1.Text) * 15000
Else
Text4.Text = 0
End If
Text5.Text = Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text)

End Sub

Private Sub PERTAMAX_Click()


If PERTAMAX.Value = 1 Then
Text3.Text = Val(Text1.Text) * 10000
Else
Text3.Text = 0
End If
Text5.Text = Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text)

End Sub

Private Sub PERTALITE_Click()


If PERTALITE.Value = 1 Then
Text2.Text = Val(Text1.Text) * 13000
Else
Text2.Text = 0
End If
Text5.Text = Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text)

End Sub

Private Sub Text6_Keypress(keyascii As Integer)


Text7.Text = Val(Text6.Text) - Val(Text2.Text) - Val(Text3.Text) -
Val(Text4.Text)
End Sub

You might also like