You are on page 1of 3

Private Sub Command1_Click() biaya = Val(Text3.Text) * Val(Text4.Text) Text5.Text = biaya If Val(Text3) > 3 Then potongan = biaya * 0.

15 Else potongan = 0 End If Text6.Text = potongan total = biaya - potongan Text7.Text = total

End Sub

Private Sub Command2_Click() Text1.Text = Clear Text2.Text = Clear Text3.Text = Clear Text4.Text = Clear Text5.Text = Clear Text6.Text = Clear

Text7.Text = Clear c End Sub

Private Sub Command3_Click() End End Sub

Private Sub Form_Load() Combo1.AddItem "Perempuan" Combo1.AddItem "Laki-Laki" End Sub

Private Sub Option1_Click() If Option1.Value = True Then Text4 = 600000 End If End Sub

Private Sub Option2_Click()

If Option2.Value = True Then Text4 = 450000 End If End Sub

Private Sub Option3_Click() If Option3.Value = True Then Text4 = 250000 End If End Sub

Private Sub Option4_Click() If Option4.Value = True Then Text4 = 150000 End If End Sub

You might also like