Results 1 to 3 of 3

Thread: Determining String Content

  1. #1

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    I need help with determing the content of a string, I need to know if it contains text or numbers. I know that there is probably some simple way to do this but my VB is a bit rusty.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    Let's assume that you have a TextBox. To see if it holds number, you can use IsNumeric function.
    Code:
    If IsNumeric(Text1) Then
        'It has numbers
    Else
        'It has string
    End If

  3. #3

    Thread Starter
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268

    Thanks

    Thanks, that one's been bugging me for a while.
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

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