tugas vb_1

 

Image

 

 

Private Sub Command1_Click()
Dim GP, TJ, POT, GK, PJ, GD As Currency
GP = Val(Text1.Text)
TJ = Val(Text2.Text)
POT = Val(Text3.Text)
GK = GP + TJ – POT
PJ = (GK * 10) / 100
GD = GK – PJ
Text4.Text = GK
Text5.Text = PJ
Text6.Text = GD
End Sub

Private Sub Command2_Click()
Text1.Text = “”
Text2.Text = “”
Text3.Text = “”
Text4.Text = “”
Text5.Text = “”
Text6.Text = “”
Text1.SetFocus
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

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