Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I use a Textbox to show a value.
The Value is something like "10123456" and I want it formatted like this: "T€ 10'123"
I played around with num() but the main problem is the ' (apostrophe) ...
I hope somebody can help me out.
Best Regards,
Peter
= num(round(sum({<[field1]={0}>} Costs) / 1000)), 'T€ #''##0', '.', chr(39))
Hi
the best is you set your format in tab 'number' and copy it in your text box
best regards
Chris
I tried that, but it doesn't work because of the apostrophe .. is there a way to escape this sign? chr(39) doesn't work inside num() too.
Hi,
something like
num(10123456, 'T€ #''##0','.',chr(39)) ?
Try this:
= replace(num(10123456 / 1000, 'T€ #.##0'), '.', chr(39))
- Marcus
Or this:
= num(floor(10123456 / 1000), 'T€ #'&chr(39)&'##0', '.', chr(39))
Ok I got it working.
The best shot came from marcus, but I needed to change it a little bit to:
=replace(num(Sum({<[field1]={0}>}Costs)/1000, 'T€ #.##0',',','.'), '.', chr(39))
..or better round than floor.
But, you don't need replace..
Yes!
It works very well, but floor leads to slightly wrong results...