以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  样式问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=171247)

--  作者:jick0526
--  发布时间:2021/8/23 19:20:00
--  样式问题

老师,请问下,如果B列为空,则执行样式1,如果A列加B列<0,则执行样式2,代码要怎么写?

--  作者:有点蓝
--  发布时间:2021/8/23 20:02:00
--  
if e.row.isnull("B列") then
e.style = "样式1"
elseif e.row("A列") + e.row("B列") < 0
e.style = "样式2"
end if