|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do you add Variables
<i><b>Originally posted by : KevinM (mullarkey@fs5.ee.umist.ac.uk)</b></i><br />MyVar1=5<br />MyVar2=10<br /><br />Why does MyVar1+MyVar2 return 510 and NOT 15 ?<br /><br />Also how do I perform calculations on textboxes in a form after a button has been clicked? I keep getting an error 'Object required'. Yet when I take them out of the form the calculation is executed fine!<br /><br />Many Thanks<br /><br />Kevin M<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : steve</b></i><br />myvar3 = cint(myvar1) + cint(myvar2) <br />try that<br /><br />------------<br />KevinM at 5/9/2000 7:34:53 AM<br /><br />MyVar1=5<br />MyVar2=10<br /><br />Why does MyVar1+MyVar2 return 510 and NOT 15 ?<br /><br />Also how do I perform calculations on textboxes in a form after a button has been clicked? I keep getting an error 'Object required'. Yet when I take them out of the form the calculation is executed fine!<br /><br />Many Thanks<br /><br />Kevin M<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > How do you add Variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|