X
XOYZ
Guest
For my Job I am currently working with the programming language PROGRESS. To format numbers etc. we are using the simple STRING() function. Now the following problem appeared while developing:
If I have a number like 13 and print it using
The problem is the blank space. From the Progress documentation it should be possible to erase the blank spaces =>Progress Documentation
As it is defined in the Progress documentation "Z" replaces not available digits with a blank but ">" suppresses the output of the missing digit.
Currently the best solution we have is to use TRIM() around the STRING() function. But as more code goes by I can't stop thinking that this should be possible without the TRIM function.
Or am I misunderstanding the progress documentation?
Thank you guys in advance.
Version: Open Edge 12.2.8
Continue reading...
If I have a number like 13 and print it using
STRING(13, "Z99")
I get " 13" but if I print it using STRING(13, ">99")
I still get " 13".The problem is the blank space. From the Progress documentation it should be possible to erase the blank spaces =>Progress Documentation
As it is defined in the Progress documentation "Z" replaces not available digits with a blank but ">" suppresses the output of the missing digit.
Currently the best solution we have is to use TRIM() around the STRING() function. But as more code goes by I can't stop thinking that this should be possible without the TRIM function.
Or am I misunderstanding the progress documentation?
Thank you guys in advance.
Version: Open Edge 12.2.8
Continue reading...