【问题标题】:In Crystal Reports, boolean parameter to select both true and false在 Crystal Reports 中,布尔参数选择真假
【发布时间】:2019-01-06 20:43:19
【问题描述】:

使用 CR 2008。

我有一个带有真假值的布尔参数,效果很好。有没有办法添加第三个选项来显示两者,例如“真、假、全部显示”?

不设置参数允许多个值。 IE。通过将参数设置为允许多个值,我可以同时选择 true 和 false。不是我想要的——我想要上面提到的 3 个单一选项。

提前致谢。

【问题讨论】:

  • 一些关于您如何使用以及您希望如何在公式中使用参数的示例在这里可能会有所帮助

标签: crystal-reports report


【解决方案1】:

创建一个字符串参数。 假设一个约定。 创建公式:

if {?MyParameter} = "True" then
  //do stuff like when was true
else if {?MyParameter} = "False" then
  //do stuff like when was false
else
  //do new stuff: not true, not false

【讨论】:

    猜你喜欢
    • 2011-12-23
    • 1970-01-01
    • 1970-01-01
    • 2013-12-09
    • 2010-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多