tugas VB kalkulator sederhana


KODE PROGRAM NYA ADALAH =
Private Sub Command1_Click()
Text3 = Val(Text1) * Val(Text2)

End Sub

Private Sub Command2_Click()
Text6 = Val(Text4) + Val(Text5)

End Sub

Private Sub Command3_Click()
Text9 = Val(Text7) - Val(Text8)

End Sub




Private Sub Command4_Click()
Text12 = Val(Text10) / Val(Text11)
End Sub

Private Sub Command5_Click()
End

End Sub

Private Sub Label4_Click()
Text1.SetFocus
Text1 = ""
Text2 = ""
Text3 = ""
Text4 = ""
Text5 = ""
Text6 = ""
Text7 = ""
Text8 = ""
Text9 = ""
Text10 = ""
Text11 = ""
Text12 = ""

End Sub

Komentar

Postingan Populer