Advertisement
Guest User

Calc

a guest
Apr 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dim x,y,z
  2. Function Button1_onclick()
  3.   x=CInt (TextBox1.value )
  4.   y=CInt (TextBox2.value)
  5.   z=x+y
  6.   Label4.textContent =z
  7. End Function
  8. Dim x,y,z
  9. Function Button2_onclick()
  10.   x=CInt (TextBox1.value )
  11.   y=CInt (TextBox2.value)
  12.   z=x-y
  13.   Label4.textContent =z
  14. End Function
  15. Dim x,y,z
  16. Function Button3_onclick()
  17.   x=CInt (TextBox1.value )
  18.   y=CInt (TextBox2.value)
  19.   z=x*y
  20.   Label4.textContent =z
  21. End Function
  22. Dim x,y,z
  23. Function Button4_onclick()
  24.   x=CInt (TextBox1.value )
  25.   y=CInt (TextBox2.value)
  26.   z=x/y
  27.   Label4.textContent =z
  28. End Function
  29. Function Button5_onclick()
  30.     TextBox1.Text = ""
  31.     TextBox2.Text = ""
  32. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement