英文:
I'm getting a "Boolean Required" error in my Crystal report
问题
I'm trying to get the Greater Than symbol to display when a result is 1000.
<br>
When going into Format Editor -> Common Tab -> then clicking on X+2 next to Suppress I then add the following line of code to display my result.
if {tblcomplete.Num Res} >= 1000 then ">" + totext({tblcomplete.Num Res}, 0)
else
totext({tblcomplete.Num Res}, 0)
But I am receiving a "Boolean Required" error message when doing so.
How can I fix this error?
英文:
I'm trying to get the Greater Than symbol to display when a result is 1000.
<br>
When going into Format Editor -> Common Tab -> then clicking on X+2 next to Suppress I then add the following line of code to display my result.
if {tblcomplete.Num Res} >= 1000 then ">" + totext({tblcomplete.Num Res}, 0)
else
totext({tblcomplete.Num Res}, 0)
But I am receiving a "Boolean Required" error message when doing so.
How can I fix this error?
答案1
得分: 1
问题出在抑制异常必须返回一个布尔值的事实上。
要控制显示内容,请使用一个公式,而不是抑制表达式。
英文:
The problem is due to the fact that the Suppress exception MUST return a boolean.
To control what is displayed, use a formula -- not a suppress expression.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论