我想检查金额借记列是否为空,然后它只显示字符串msg否则计算colum的总和,否则不。 [英] i want to check if amount debit column is empty then it just show string msg else count sum of colum otherwise not.

查看:81
本文介绍了我想检查金额借记列是否为空,然后它只显示字符串msg否则计算colum的总和,否则不。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

if{DataTable1.Amount_Debit}=0 then "NO Amount is credited yet"
else
sum{DataTable1.Amount_Debit}

推荐答案

确定 - 0并且没有值不是同一个东西。我怀疑Amount_Debit是null而不是0.这段代码不是C#,我不知道它是什么,但我建议更改你的数据源返回0而不是null,或者更改检查以检查它是否'' s null。
OK - 0 and no value are not the same thing. I suspect Amount_Debit is null and not 0. This code is not C#, I don''t know what it is, but I suggest changing your data source to return 0 instead of null, or change the check to also check if it''s null.


这篇关于我想检查金额借记列是否为空,然后它只显示字符串msg否则计算colum的总和,否则不。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆