以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]IsNull函数的用法  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=178029)

--  作者:2425004926
--  发布时间:2022/6/15 11:46:00
--  [求助]IsNull函数的用法
以下代码为何显示未声明IsNull,老师应怎么改呀
 DataColChanged事件
\'应收款=总金额-首付款-尾款

Select Case e.DataCol.name
    Case "TotalMoney","AdvancePayment","LastMoney"
       e.DataRow("AccountReceivable") = IsNull([TotalMoney],0) - IsNull([AdvancePayment],0) - IsNull([LastMoney],0)
End Select


--  作者:有点蓝
--  发布时间:2022/6/15 11:51:00
--  

e.DataRow("AccountReceivable") = e.DataRow("TotalMoney") - e.DataRow("AdvancePayment") - e.DataRow("LastMoney")


下次发帖的时候,麻烦请不要设置这个东西


此主题相关图片如下:1.png
按此在新窗口浏览图片



--  作者:2425004926
--  发布时间:2022/6/15 12:09:00
--  
 谢谢!