Title: Function documentation Post by: Joseph M. on July 10, 2009, 04:52:41 pm 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 Title: Re: Function documentation Post by: Christine R. on July 10, 2009, 06:04:34 pm 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 Title: Re: Function documentation Post by: Joseph M. on July 10, 2009, 06:18:30 pm 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 Title: Re: Function documentation Post by: Alex G. on July 10, 2009, 08:46:59 pm 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 |