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



Comments