PDA

Click to See Complete Forum and Search --> : convert string to number


bbosh
Apr 27th, 2001, 11:47 PM
how do i convert a string to a number?
eg
lsttags.style.height=window.screen.height-lsttags.style.height
that wont work because they're strings, so i cant preform subtraction

monte96
Apr 28th, 2001, 03:00 PM
Umm.. they shouldn't be strings. Are you getting an error message? If so, what is it?

ttlai
Apr 30th, 2001, 10:14 AM
Monte's right; it's not suppose to be a string. However, FYI, you can use CINT(yourstringhere) to convert a string to an integer.

Good Luck