跳至内容
菜单
此问题已终结
2 回复
3867 查看

How I can translate field value  for example (124/P1/25 to 124-1-25). Actually how I can do sting operations  in Report Designer ?

形象
丢弃
最佳答案

Hello my friend;

here is how you can convert your (124/P1/25 to 124-1-25).

Answer:

s = "124/P1/25"

print s

s.replace('/','-')

print s

s = s.replace('/','-')

print s

s.replace('P','')

print s

s = s.replace('P','')

print s

Best Regards.

形象
丢弃
编写者 最佳答案

Thanks  I used that [ ((o.fiskal_broj).replace('/','-')).replace('P','') ]]  in my report. You helped me a lot. :)

形象
丢弃

in your service :) but why dont you vote ;)

相关帖文 回复 查看 活动
1
11月 15
7290
2
8月 15
10183
0
3月 15
7022
4
3月 25
22900
2
4月 24
1886