Troubleshooting

array of numbers as labels

Started by electrofux on .

Sign in or create an account to join the conversation.

6 posts

Topic starter
Hello,

i have an array Oneto16={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16}
and i want to use it to set the labels of a padobject (the array changes dynamically).

But setattribute(padobject,'labels',Oneto16} doesnt work. Probably because the elements aren't strings.
How should a go about this to make it work?
yeah, but the values in the array change and so should the labels- that is the problem. If make the array strings from the start i lose the possibilty to change the numbers by adding/multiplying the values.
I think ineed some sort of conversion to strings but with array to string i didnt get far.