quote:
Originally posted by Plan-1130
[offtopic]
Technically that 10 isn't a number either, it's a (sub)string.
In the beginning I had some problems with that as that 10 was NaN (Not a Number).
Comparing the string 10 with the number 10 will result in NaN...
Still I don't know how I got many of my scripts working, as VB provides a function to parse an integer from a string, but I couldn't find any in the MSDN... (not in function, not in methods of object String).
[/offtopic]
For me I just do th following and it works (though I'm probably going about it the wrong way)
code:
[...]
var String = "10";
var Number = new Number(String);
[...]
I couldn't think of any other way of making it a number. I hope this helps (assuming what I did is correct).