Results 1 to 3 of 3

Thread: convert string to number

  1. #1

    Thread Starter
    Addicted Member bbosh's Avatar
    Join Date
    Oct 2000
    Location
    Hell (AKA New Mexico)
    Posts
    186

    convert string to number

    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
    Brian
    Programming: VB5 Pro (SP3) - QBasic 1.1,4.5
    Internet: HTML 4, CSS, JavaScript
    Visit AltInt.com!

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Umm.. they shouldn't be strings. Are you getting an error message? If so, what is it?
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Lively Member
    Join Date
    Jan 2001
    Posts
    72

    CINT

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width