如何检查字符串的空值,如果为null,则禁止在crystal报表中的任何表 [英] how to check null value of a string and if it is null then suppress any table in crystal report
本文介绍了如何检查字符串的空值,如果为null,则禁止在crystal报表中的任何表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图压制一个子报告。我想检查一个字符串值,它是否为空。如果字符串值为null,那么它将被禁止。
我跟着以下步骤
1.然后我写了一个类似
的公式
如果InStr({EmployeeHist.SpouseName},'')= 0那么
'N / A'
但它显示错误**公式结果必须是布尔人** ..
有人可以帮忙吗? ?
解决方案
您的公式应如下所示。因为抑制条件取决于true
或false
(布尔值)。
if InStr({EmployeeHist.SpouseName},' ')= 0 然后
true
I am trying to suppress a sub-report.I want to check a string value either it is null or not..If the string value is null then it will suppress.
I followed the following steps steps
1. then I wrote a formula like
if InStr ({EmployeeHist.SpouseName},'' ) = 0 then
'N/A'
But its showing a error **THE FORMULA RESULT MUST BE A BOOLEAN**..
Can anyone please help??
解决方案
Your formula should be like below. Because the suppress condition depends ontrue
orfalse
(boolean value).
if InStr ({EmployeeHist.SpouseName},'' ) = 0 then true
这篇关于如何检查字符串的空值,如果为null,则禁止在crystal报表中的任何表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文