Operasi Pengurangan Pada VB


Buat form sbb:

command1 beri nama Proses

Text1 beri nama Nil1

Text2 beri nama Nil2

Text3 beri nama Nil3

Label1 beri simbol – (strip / minus)

Label2 beri simbol = (sama dengan)

catat code dibawah ini

Ketik Code dibawah ini:Private Sub Command1_Click()

Text3 = Val(Text1.Text) – Val(Text2.Text)

End Sub

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