NooBi to VBScript but vb knowledged
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:
<script language="VBScript">
sub StartAdd_OnCLick()
dim x1
dim x2
x1 = No1.value
x2 = No2.value
No3.value = x1 + x2
end sub
</script>