Advertisement
Guest User

calc code

a guest
Apr 27th, 2017
59
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.  
  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.  
  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.  
  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.  
  30. Function Button5_onclick()
  31.     TextBox1.Text = ""
  32.     TextBox2.Text = ""
  33. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement