on ‎2014 Apr 10 8:27 PM
I am trying to convert integer to string, but there is no such function. Or at least, I couldn't find one. There is conversion from float to string functions. However, there is no int to string.
Do you know how?
I found a workaround, but I am not sure if this is the right approach.
var int_tst = Convert.stringLength(string_tst);
var float_tst = int_tst + 0.0;
TEXT_2.setText(Convert.floatToString(float_tst,"#0"));
Thanks.
Request clarification before answering.
Hi
Its quite easy.
all you have to do is add "" to your number :
var int_tst = 3;
TEXT_2.setText(int_tst+ "");
it will do the work
good luck
Roman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In standard JavaScript, you'd just do int_tst.toString(). Does this function not work in Design Studio?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.