判斷字串裡面是否有數字
      static  bool isnumeric(string str)
        {
            char[] ch = new char[str.Length];
            ch = str.ToCharArray();
            for (int i = 0; i < ch.Length; i++)
            {
                if (ch[i] < 48 || ch[i] > 57)
                    return false;
            }
            return true;
        }

arrow
arrow
    全站熱搜

    createps 發表在 痞客邦 留言(0) 人氣()