首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

asp.net的代码有些看不懂,赐教

2012-12-17 
asp.net的代码有点看不懂,赐教DataSet ds DBHelp.DateSet(strSql.ToString())int count Store.Tables

asp.net的代码有点看不懂,赐教
DataSet ds = DBHelp.DateSet(strSql.ToString());
  int count = Store.Tables[0].Rows.Count;
  if (ds.Tables[0].Rows.Count > 0)
  {
  string[] SingleStore = null;
  for (int yy = 0; yy < count; yy++)
  {
  if (Store.Tables[0].Rows[yy][0].ToString() != "0")
  {
  if (U_Id != "")
  {
  SingleStore = Store.Tables[0].Rows[0][0].ToString().Split('|');//1,78|2,56|3,78|4,23
  }
  else
  {
  SingleStore = Store.Tables[0].Rows[yy][0].ToString().Split('|');//1,78|2,56|3,78|4,23
  }
  int ss = 0;
  for (int cc = 0; cc < SingleStore.Length; cc++)
  {
  string[] MyScore = SingleStore[cc].Split(',');//1,78
  ss = int.Parse(MyScore[1].ToString());
  ds.Tables[0].Rows[yy][2 + cc] = ss.ToString();
  }
  }
  }
  }
  return ds;
其中string[] SingleStore = null;是声明一个数组吗?还是什么

热点排行