sil3nt2004
Programmer
Hi,
I'm using to following method to validate for numeric input:
private bool IsNumeric(string strText)
{
try
{
int test = int.Parse(strText);
return true;
}
catch (Exception e)
{
return false;
}
}
How can I check for string input using a similar method?
Any help will be appreciated.
Thanx,
Ryno.
I'm using to following method to validate for numeric input:
private bool IsNumeric(string strText)
{
try
{
int test = int.Parse(strText);
return true;
}
catch (Exception e)
{
return false;
}
}
How can I check for string input using a similar method?
Any help will be appreciated.
Thanx,
Ryno.