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

There is no row at position -10,该如何处理

2012-02-03 
There is no row at position -10forj0tods.tables( 访客留言板 ).columns.count-1newrow.item(j)ds.t

There is no row at position -10
for   j=0   to   ds.tables( "访客留言板 ").columns.count-1
      newrow.item(j)=ds.tables( "访客留言板 ").rows(i)(j)
  next
  这是repeater实现分页时的把源表的行记录复制给目标表的新建行,可运行时总是出现
        There   is   no   row   at   position   -10
      错误!数据库源表中确实有记录的!
这是本人第一次在咱们社区发贴子,请各位高手帮忙呀!!!!
谢谢!!!!

[解决办法]
rows(i),这里i计算不正确,取值为-10,这个位置没有行。

热点排行