Hello,
Where can I find documentation for the built in functions for report writer?
I have an issue with the toString() function. It returns a string value "99.0" for an integer variable with value of 99. How can I get it to return "99" without the training ".0".
Thank you
Joe Miller
Hello Mr Miller,
See below the URL where you can find the requested information :
https://4js.com/online_documentation/fjs-grd-1.00.00-manual-html/reportwriter/User/ClassString.html
This documentation is also delivered in the Genero Report Designer package.
You may also find some useful information in this page:
https://4js.com/online_documentation/fjs-grd-1.00.00-manual-html/reportwriter/User/rtlexpressions.html
I hope this will help you.
Best regards,
Christine HEIM-REBIERE
Four J's Support Team
Thank you for your reply,
I have found the toString() function documentation. Unfortunately it doesn't document its return value or any method of controlling its return value.
I don't understand why this function is returning a representation of a float value when the value being converted is an integer. Can you provide a method for properly converting and displaying an integer value?
Thank You
Joe Miller
Try the function Numeric.format(String formatString) which is compatible with the 4GL FORMAT string. As an example consider the expression (12.34).format("###") which yields the String "12".
Kind Regards,
Alex Geller