SteveS
October 22nd, 2001, 12:56 PM
I have a number in string format that my VBScript won't treat as a number.
For example:
myVar = "100"
If mVar >= 100 then
:
:
I get an error on the "If" line. I program in C++ all the time so I completely understand the difference between "100" and 100, but what I don't understand is when this bizarre VBScript and its VARIANT datatype will do this or that for me.
So, my simple question is how do I convert this into a number? I checked the MSDN and I swear that Microsoft couldn't design a more difficult documentation package than the MSDN if they tried!
For example:
myVar = "100"
If mVar >= 100 then
:
:
I get an error on the "If" line. I program in C++ all the time so I completely understand the difference between "100" and 100, but what I don't understand is when this bizarre VBScript and its VARIANT datatype will do this or that for me.
So, my simple question is how do I convert this into a number? I checked the MSDN and I swear that Microsoft couldn't design a more difficult documentation package than the MSDN if they tried!