split(String.split 方法)

string YE_Symptom;
string[] Symptom = YE_Symptom.Split(new char[] { ',' });   //用 "," 作为分割符 返回数组
         for (int i = 0; i < Symptom.Length; i++)
            {
                for (int j = 0; j < 11; j++)
                {
                    if (chklist.Items[j].Text == Symptom[i].ToString())
                    {
                        chklist.Items[j].Selected = true;
                    }
                }
            }

相关文章:

  • 2021-12-23
  • 2021-12-23
  • 2022-01-07
  • 2021-08-07
  • 2021-05-30
  • 2022-01-24
  • 2021-05-25
  • 2021-09-06
猜你喜欢
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案