以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]如何判断dr是否为空 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=71211) |
-- 作者:2900819580 -- 发布时间:2015/7/7 13:42:00 -- [求助]如何判断dr是否为空 For Each dr As DataRow In DataTables("入仓单明细").Select("入仓单号 = \'" & e.Form.Controls("TxtRCdh").value & "\'") If dr("物料编码") Is Nothing Then msgbox("nothing") End If Next |
-- 作者:2900819580 -- 发布时间:2015/7/7 14:43:00 -- 这样写对吗? 可是为什么不弹出对话框呢? |
-- 作者:大红袍 -- 发布时间:2015/7/7 14:44:00 -- For Each dr As DataRow In DataTables("入仓单明细").Select("入仓单号 = \'" & e.Form.Controls("TxtRCdh").value & "\'") If dr.IsNull("物料编码") Then msgbox("nothing") End If Next |