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. Advertisements

  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.
     
    Kevin Spencer, Nov 16, 2004
    #2
    1. Advertisements

  3. VB Programmer

    bruce barker Guest

    use a regular expression. see the regex class library

    -- bruce (sqlwork.com)


    | 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. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.