Number Format Error
Posted: 29 Jan 2015 16:15
Hello,
I want to display programmaticaly a number from a variable in a text field of a widget.
The number should be displayed with only 2 digits.
I don't want to use global variables.
So, I use this:
setWidgetElementProperty("UWidget", "Text1", "text", {totalTrafic,numberformat,0.00});
I'm getting an error that a ; is missing.
What am I doing wrong?
Regards,
TC
I want to display programmaticaly a number from a variable in a text field of a widget.
The number should be displayed with only 2 digits.
I don't want to use global variables.
So, I use this:
setWidgetElementProperty("UWidget", "Text1", "text", {totalTrafic,numberformat,0.00});
I'm getting an error that a ; is missing.
What am I doing wrong?
Regards,
TC