当列值为零时,如何隐藏数据窗口中列的显示值

发布于 2024-10-09 13:29:29 字数 81 浏览 0 评论 0原文

这个问题说明了一切。澄清一下:我并不是想隐藏整个列,我只是想在显示值等于零时隐藏它。

任何帮助表示赞赏!

提前致谢。

The question says it all. To clarify: I am not trying to hide the whole column, I just want to hide the display value when it is being equal to zero.

Any help is appreciated!!!

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我的鱼塘能养鲲 2024-10-16 13:29:29

对您所说内容的一种解释是使格式掩码以井号结尾,例如 #,###。另一种解释是根据列的值创建一个 Visible 表达式,例如(未经测试)if (*colname*=0, '0', '1')。我猜你追求的是前者。

祝你好运,

特里。

One interpretation of what you're saying is to make the format mask end in a pound sign, like #,###. Another interpretation would be to make a Visible expression dependent on the value of the column, like (untested) if (*colname*=0, '0', '1'). I'm guessing you're after the former.

Good luck,

Terry.

咽泪装欢 2024-10-16 13:29:29

值得注意的是,您可以为一个数据窗口列指定四种不同的格式掩码。您只需创建最多四个掩码,并用分号分隔。

示例格式掩码:
$#,##0.00;RED;#;'null'

  1. 正值使用 $#,##0.00
  2. 负值使用 RED
  3. 零值使用 #
  4. Null 值使用 'null'

产生这些结果:

123.01 - -> $123.01

-123.01 --> ($123.01) 红色文字

0 -->

空 -->无效的

It is worth knowing that you can specify four different format masks for one datawindow column. You simply create up to four masks separated by semicolon.

Sample Format Mask:
$#,##0.00;RED;#;'null'

  1. Positive Values use $#,##0.00
  2. Negative Values use RED
  3. Zero Value use #
  4. Null Value uses 'null'

Produces These Result:

123.01 --> $123.01

-123.01 --> ($123.01) in red text

0 -->

null --> null

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文