public static bool IsDecimal(string Text)
{
int intIndex;
if(Text == "" || Text == null)
return (true);
char [] arrCharacter = Text.ToCharArray();
for(intIndex = 0; intIndex < arrCharacter.Length; intIndex++)
{
if(char.IsDigit(arrCharacter[intIndex]) == false)
if(arrCharacter[intIndex] != '.')
return(false);
}
return (true);
}
No comments :
Post a Comment