以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- if问题 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=113607) |
-- 作者:jick0526 -- 发布时间:2018/1/19 13:20:00 -- if问题 老师请问一下,如果a,b,c三列都为空那么d列等于成功,否则为空。代码要怎么写?谢谢! |
-- 作者:z769036165 -- 发布时间:2018/1/19 13:34:00 -- If e.DataRow("A") = "" And e.DataRow("B") = "" And e.DataRow("C") = "" Then e.DataRow("D") = "成功" Else e.DataRow("D") = "" End If
|
-- 作者:有点甜 -- 发布时间:2018/1/19 14:47:00 -- If e.DataRow("A") = nothing And e.DataRow("B") = nothing And e.DataRow("C") = nothing Then
e.DataRow("D") = "成功"
Else
e.DataRow("D") = nothing
End If |