Leave a comment

perhitungan harga setelah diskon 10%

USEP PERHITUNGAN DISKON ENTER DAN HITUNG

Private Sub Cmdquit_Click()
Unload Me
End Sub

Private Sub Cmdulangi_Click()
Txthargaawal.SetFocus
Txthargaawal = “”
Txtdiskon = “”
Txthargaakhir = “”
End Sub

Private Sub Command1_Click()
Txthargaakhir.Text = Val(Txthargaawal.Text) – Val(Txtdiskon.Text)
End Sub

Private Sub Txthargaawal_keypress(keyascii As Integer)
If keyascii = 13 Then
Txtdiskon.Text = Val(Txthargaawal.Text) * 0.1
End If
End Sub

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: