gpt4 book ai didi

c# - 在 Crystal Report 公式中将 Decimal 转换为 int

转载 作者:太空宇宙 更新时间:2023-11-03 22:08:31 26 4
gpt4 key购买 nike

我已经使用公式为每条记录生成行号公式是这样的:

共享数字var rownum;
行数 := 行数 + 1;
行号;
但它显示十进制数:1.00、2.00、3.00、4.00我只想在 RowNumber 中显示 Int 数字:1,2,3,4,5

我该怎么做?

提前致谢

最佳答案

在 Canvas 上选择公式字段,然后单击减少小数工具栏图标两次。

您应该使用 RecordNumber 字段而不是递增变量——工作量少得多。

关于c# - 在 Crystal Report 公式中将 Decimal 转换为 int,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7545992/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com