RSS

Tugas 4

PERHITUNGAN NILAI SETELAH DISKON 10%

PERHITUNGAN HARGA SETELAH DISKON

Private Sub cmdhitung_Click()

Dim A, B, C As Double
textB.Text = Val(textA.Text) * 0.1
textC.Text = Val(textA.Text) – Val(textB.Text)
End Sub

Private Sub Cmdulangi_Click()
textA = “”
textB = “”
textC = “”
End Sub

Private Sub Comdquit_Click()
End
End Sub

Private Sub TextA_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TextB.SetFocus
End If
End Sub

Private Sub TextB_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TextC.SetFocus
End If
End Sub

Iklan
 

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

 
%d blogger menyukai ini: