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




No comments:

Post a Comment

Note: Only a member of this blog may post a comment.