Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Function documentation  (Read 13133 times)
Joseph M.
Posts: 18


« 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
Christine R.
Four Js
Posts: 443


« Reply #1 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
Joseph M.
Posts: 18


« Reply #2 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
Alex G.
Four Js
Posts: 155


« Reply #3 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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines