Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Check if var is alphanumeric?

Reply
Thread Tools

Check if var is alphanumeric?

 
 
VB Programmer
Guest
Posts: n/a
 
      11-16-2004
How can you check to see if a variable is a number or is alphanumeric?
What's the easiest way?


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      11-16-2004
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$(E-Mail Removed)...
> How can you check to see if a variable is a number or is alphanumeric?
> What's the easiest way?
>
>



 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      11-16-2004
use a regular expression. see the regex class library

-- bruce (sqlwork.com)


"VB Programmer" <Dont*NoSpam-Please*@jEmail.com> wrote in message
news:u$(E-Mail Removed)...
| How can you check to see if a variable is a number or is alphanumeric?
| What's the easiest way?
|
|


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bit check using function check(var,pos) ((var)&(1<<pos)) prati C Programming 0 10-27-2012 05:25 PM
Difference between Session["var"] and Session("var") thomson ASP .Net 10 06-20-2005 01:02 PM
Difference between Session["var"] and Session("var") thomson ASP .Net 0 06-20-2005 10:54 AM
Threads.. Session var lost, App var ok Alvin Bruney ASP .Net 1 12-02-2003 01:56 AM
does "struct_name var = { 0 }; " fill var with 0? Fred C++ 3 08-10-2003 09:44 AM



Advertisments