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

foreach循环如何理解 请详细说一下

2012-04-14 
foreach循环怎么理解 请详细说一下foreach(DataRowmyRowinds2.Tables[0].Rows ){aaaa+myRow[0]+,}[解

foreach循环怎么理解 请详细说一下
foreach(DataRow myRow in ds2.Tables[0].Rows )
{
aa=aa+myRow[0]+",";
}

[解决办法]
遍历ds2.Tables[0]所有行
myRow代表每一行循环中的变量名
myRow[0]代表这行的第一列

热点排行