Hello swarm intelligence !
Bit of a small problem with a local variable in a multislider (just 1 slider) object.
When I set a local variable for the slider's x value I can monitor this variable just fine from the outside.
If I want to set a text field´s "content" attribute to the value of this variable though, nothing happens.
I can successfully set the "content" attribute to a string but not the value of variable "slider_value".
This is the exact same thing as in the documentation with the example for a fader, but no luck.
What am I missing ?
Your help is highly appreciated.
Thank you !
Cant set textfield 'content' to local variable
Re: Cant set textfield 'content' to local variable
hi there,
attribute 'content' is a text field not a digit field ...
-> ...'content','' + slider_value);
this makes it to a text field and in the Text object you have to leave out "slider_value" this is a static text field...
cheers
schoko
attribute 'content' is a text field not a digit field ...
-> ...'content','' + slider_value);
this makes it to a text field and in the Text object you have to leave out "slider_value" this is a static text field...
cheers
schoko
Re: Cant set textfield 'content' to local variable
Thank you very much !!
You would expect that a modern app automatically converts integers to strings
in that case but oh well
You would expect that a modern app automatically converts integers to strings
in that case but oh well