Results 1 to 3 of 3

Thread: [RESOLVED] really small one... text to numeric value

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    3rd rock from the sun
    Posts
    360

    Resolved [RESOLVED] really small one... text to numeric value

    cant for the love of God remember or find...
    how does one change a text1.text into a numeric value?



    tnx

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: really small one... text to numeric value

    VB Code:
    1. Dim intHack As Integer
    2. intHack = Val(Text1.Text)
    In addition to Val, you can also use:
    CInt - Convert to Integer
    Clng - Convert to Long
    CSng - Convert to Single
    CDbl - Convert to Double

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2006
    Location
    3rd rock from the sun
    Posts
    360

    Re: really small one... text to numeric value

    sweet again...
    tnx man, for a swift one!

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