Check if var is alphanumeric?

Discussion in 'ASP .Net' started by VB Programmer, Nov 16, 2004.

  1. How can you check to see if a variable is a number or is alphanumeric?
    What's the easiest way?
     
    VB Programmer, Nov 16, 2004
    #1
    1. Advertising

  2. Turn Option Strict ON. You'll never have to guess again.

    --
    HTH,
    Kevin Spencer
    ..Net Developer
    Microsoft MVP
    Neither a follower
    nor a lender be.

    "VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
    news:u$...
    > How can you check to see if a variable is a number or is alphanumeric?
    > What's the easiest way?
    >
    >
     
    Kevin Spencer, Nov 16, 2004
    #2
    1. Advertising

  3. VB Programmer

    bruce barker Guest

    use a regular expression. see the regex class library

    -- bruce (sqlwork.com)


    "VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
    news:u$...
    | How can you check to see if a variable is a number or is alphanumeric?
    | What's the easiest way?
    |
    |
     
    bruce barker, Nov 16, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alvin Bruney

    Threads.. Session var lost, App var ok

    Alvin Bruney, Dec 2, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    383
    rooster575
    Dec 2, 2003
  2. thomson
    Replies:
    10
    Views:
    2,529
    Eliyahu Goldin
    Jun 20, 2005
  3. thomson
    Replies:
    0
    Views:
    404
    thomson
    Jun 20, 2005
  4. Matt
    Replies:
    6
    Views:
    194
    Evertjan.
    Sep 23, 2004
  5. prati
    Replies:
    0
    Views:
    501
    prati
    Oct 27, 2012
Loading...

Share This Page