+ -
当前位置:首页 → 问答吧 → 方法返回DataSet时报错Index (zero based) must be greater than or equal to zero and less.

方法返回DataSet时报错Index (zero based) must be greater than or equal to zero and less.

时间:2011-12-21

来源:互联网

方法返回DataSet时报错:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.貌似是索引超出,但没用数组,返回的DataSet中也仅仅一个DataTable,不知为何报这个错。哪位遇到过? 急待中~~

作者: Alexanderlc   发布时间: 2011-12-21

莫名其妙,谁知道你用的什么方法?

作者: DENQH   发布时间: 2011-12-21

DataSet.Tables.Count是否大于0?
DataSet.Tables[0].Rows.Count是否大于0?
你的代码怎么写d

作者: net_lover   发布时间: 2011-12-21

相关阅读 更多

热门下载

更多