gpt4 book ai didi

crystal-reports - 用前导零填充固定数字直至固定长度

转载 作者:行者123 更新时间:2023-12-03 01:23:58 25 4
gpt4 key购买 nike

在使用 Visual Studio 2010 的 Crystal Report 中,我尝试为以下场景创建公式:

x = 任意数字(8位固定数字,不能小于或大于)

如果X的长度小于8,则在前面补足所需数量的0,使其长度为8。

例如:

X = 123
Result of Formula should be 00000123

X = 9
Result of Formula should be 00000009

任何帮助将不胜感激。提前致谢。

最佳答案

ToText({table.field},"00000000") 更简洁。

关于crystal-reports - 用前导零填充固定数字直至固定长度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10989266/

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