OK i know vb alot. and VBscript doesnt seem to different. But im learning that vbscript is supposed to change variable tyes automatically but in this case i think i did somethine wronge here. Look at the below snippet im just trying to use the variable to add whats in 1 text box to another , i get no error but when i add 1 + 1 i get = 11.
VB Code:
  1. <script language="VBScript">
  2. sub StartAdd_OnCLick()
  3. dim x1
  4. dim x2
  5.     x1 = No1.value
  6.     x2 = No2.value
  7.    
  8.     No3.value = x1 + x2
  9. end sub
  10. </script>