无法使用isNumber函数?
											请教各位高手,我现在在C#中写了个判断一个字符串中的字符是否为数字,用到了isNumber(str,i)这个函数,具体内容如下!
public bool isnum(string str)
        {  
            int i;
            bool result=true;
       
            for(i=0;i<str.Length;i++) 
            {
                if(IsNumber(str,i))
                   result=true;    
                else
                   result=false;
            }
             return result;   
        }
但是我在运行时出现如下错误提示,
D:\My Documents\Visual Studio Projects\WindowsApplication2\WindowsApplication2\Form1.cs(173): 名称“IsNumber”在类或命名空间“WindowsApplication2.Form1”中不存在
请问是什么原因?谢谢了!
[此贴子已经被作者于2006-4-26 12:21:36编辑过]

 
											





 
	     
											
