
加好友 发短信
等级:五尾狐
帖子:1045
积分:7496
威望:0
精华:0
注册:2008/8/31 22:52:00
|
[讨论] 请大家看看这段代码有什么问题? Post By:2010/3/4 0:04:00 [显示全部帖子]
dim i2 as integer = 0 for each dr4 as datarow in datatables("审核表").datarows if dr4.isnull("姓名ID") then dataTables("审核表").dataRows.Delete(i2) end if i2 = i2 + 1 next
“审核表”中有一"姓名ID"列,字符型的
我想如果"姓名ID"列为空的行,就删除该行
如此简单的事,就是看不出问题在哪里。
提示出错的图:
 此主题相关图片如下:未命名.jpg
|
|