【问题标题】:How do I parse a field in Crystal Reports that uses a record separator如何解析 Crystal Reports 中使用记录分隔符的字段
【发布时间】:2013-06-07 02:09:11
【问题描述】:

Crystal Reports XI,SQL Server 2008。我有一个 varchar 列,它使用记录分隔符来划分项目,但在 Crystal Reports 中呈现时它会消失。

当我在编辑器中检查结果时,我发现它被识别为 RS 或 Hex 1E。如果可能的话,我想将 RS 转换为逗号,但任何将它分解的东西都可以。

示例 Item oneRSItem TwoRSItem Three 变为 Item OneItem TwoItem Three。我想要项目一,项目二,项目三。

【问题讨论】:

    标签: crystal-reports crystal-reports-xi


    【解决方案1】:

    这就是我最终解决了我的问题的方法。我确定记录分隔符是 CHAR(30) (using this table) 并在 REPLACE(table.Value, CHAR(30), ', ') 中使用了该函数并且它有效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-23
      • 1970-01-01
      • 2015-07-26
      • 1970-01-01
      相关资源
      最近更新 更多