以文本方式查看主题 - 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=103630) |
-- 作者:jick0526 -- 发布时间:2017/7/13 3:31:00 -- if问题 老师,请问下,如果D列小于C列(D列如果为空,则默认为0),则B列会等于A列,如果D列大于等于C列,则B列为空,代码要怎么写,谢谢! |
-- 作者:有点甜 -- 发布时间:2017/7/13 8:59:00 -- If e.DataRow("D") < e.DataRow("C") Then e.DataRow("B") = e.DataRow("A") ElseIf e.DataRow("D") >= e.DataRow("C") Then e.DataRow("B") = Nothing End If |