【问题标题】:How can I set a mask to field of database on crystal report (visual studio 2008)如何在 Crystal Report 上为数据库字段设置掩码(Visual Studio 2008)
【发布时间】:2015-04-06 21:33:15
【问题描述】:

如果字符串的字符较少,我会尝试设置掩码。 像这样: 预期 = 00000001 真实= 001

【问题讨论】:

标签: visual-studio crystal-reports-2008


【解决方案1】:

真的,我使用了这段代码并且成功了!

ReplicateString ("0",8-Length(cstr(ToNumber({SAGFacturaSOP.NumFactura}),0))) + cstr(ToNumber({SAGFacturaSOP.NumFactura}),0) 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-16
    • 1970-01-01
    • 2015-03-27
    • 1970-01-01
    • 2011-01-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多