我想在 Ireport 的最后一项中用逗号分隔带详细信息中我的字段中的数据,不带逗号

I want to separate data from my field in the band detail with a comma and without a comma in the last item on Ireport

比如我的字段有字段模式加的逗号值: 21、22、23、26,

但我希望它是: 21、22、23、26

或更进一步: 21、22、23 和 26

但没有最后一个逗号就足够了。

记住这是在 ireport 的上下文中引用的。

不像这里的许多人,他们决定不喜欢而不是帮助,即使他们是这方面的专家。我建议一个解决方案: 我的疑问是我希望我的字段元素用逗号分隔,并且在最后的示例中没有那个烦人的逗号: 项目 1、项目 2、项目 3、 我希望它看起来像这样: 项目 1、项目 2、项目 3

这样做的方法是: $ V {Variable created to format}! = Null? $ V {Variable created to format} + "," + $ V OR F {Variable with your field or your field}: $ V OR F {Variable with your field or your field}