I have method in which I use utils.numberFormat() function but on some line I get a deprecated indicator and on other lines the function is accepted
[attachment=0]2014-12-18_0822.png[/attachment]
The value used on line 152 is a variable, the values on the lines 166,167 etc. are columns from a foundset.
Is utils.numberFormat() deprecated for variables only or is the a bug/feature?
In older versions of Servoy the format functions could be called with either date/number or string, where in the string option they actually performed a parse. Now it is changed to what it really says: format a number or date, so only numbers or dates are accepted. So I guess in your code the compiler does not know that $numDiff is a number.
My guess is that you use the same variable ‘$numDiff’ for the result which is a string, so the “compiler” thinks at that time $numDiff is a string and gives the warning.
I don’t think so, the columns used are defined like so
[attachment=0]2014-12-18_1155.png[/attachment]
and before running the for loop I do $numDiff=0 , but I’m still investigating.