Converting a 3.5 solution, I got a var that sets a limit of an amount (eu. 77,47, in italian format).
This gives an error, because of the comma (works fine in 3.5).
Is it a bug or expected behaviour?
When/where do you get the error?
During some developer operation or when using the smart/web client?
How is that value set into the variable?
Andrei Costescu:
When/where do you get the error?
During some developer operation or when using the smart/web client?
How is that value set into the variable?
In the developer: the value comes from a solution converted from 3.5.6.
See pictures http://www.morninger.it/test_servoy/var_1.png and http://www.morninger.it/test_servoy/var_2.png
In the first picture you can see that the value with the comma causes a sort of hierarchy in the outline section.
This is expected behavior for 4.0. As the default values are now part of the .js file, you must use JS numbers - that means with dot instead of comma… Comma would mean you want to declare another variable after it… according to JS syntax.
In 3.5 variables were not defined inside JS.
We will add some code to automatically do this conversion when checking out a solution from the Servoy team repository (in version 4.0.1).