skip to main | skip to sidebar

Ted's Hello World

Monday, August 10, 2009

Check if a String is a number

You could try:

double
Num;
bool isNum = double.TryParse(Str, out Num);
if (isNum) Then
...

Or you could try the IsNumeric function from Microsoft.VisualBasic.FileIO




Posted by Ted Unnikumaran at 4:40 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2011 (1)
    • ►  January (1)
  • ►  2010 (42)
    • ►  November (4)
    • ►  October (1)
    • ►  June (10)
    • ►  May (2)
    • ►  April (5)
    • ►  March (14)
    • ►  February (5)
    • ►  January (1)
  • ▼  2009 (56)
    • ►  December (1)
    • ►  November (4)
    • ►  September (1)
    • ▼  August (4)
      • AnkhSVN with a blue plus sign in Visual Studio eve...
      • Check if a String is a number
      • Start Windows Explorer on a specific directory in ...
      • Default Values to Properties
    • ►  July (2)
    • ►  June (9)
    • ►  May (7)
    • ►  April (5)
    • ►  March (7)
    • ►  February (11)
    • ►  January (5)
  • ►  2008 (51)
    • ►  December (7)
    • ►  November (6)
    • ►  October (4)
    • ►  September (4)
    • ►  July (5)
    • ►  June (5)
    • ►  May (5)
    • ►  April (1)
    • ►  March (4)
    • ►  February (8)
    • ►  January (2)
  • ►  2007 (16)
    • ►  December (10)
    • ►  November (6)

About Me

Ted Unnikumaran
View my complete profile