using numbers as selectors
Posted: Tue Nov 10, 2015 5:25 pm
I have a grid of 216 graphic rectangles.
i have numbered these according to position, essentially from top to bottom.
If I select say graphic 13 the graphic returned is 38.
Now it seems live code is ignoring my number names and renumbering from left to right.
ie. graphic 38 is the thirteenth graphic if I count left to right.
I realise that i should probably not use numbers for names but i need to move around the squares according to the results of a equation.
it does not seem to make a difference, if I use graphic "13" or graphic 13.
I use 13 just an example but this happens for all graphics.
I suppose 1 solution would be to prefix an alpha character to the name and then strip out later, but if i could get my head around whats happening or how live code does this, i might have a more elegant solution.
i have numbered these according to position, essentially from top to bottom.
If I select say graphic 13 the graphic returned is 38.
Now it seems live code is ignoring my number names and renumbering from left to right.
ie. graphic 38 is the thirteenth graphic if I count left to right.
I realise that i should probably not use numbers for names but i need to move around the squares according to the results of a equation.
it does not seem to make a difference, if I use graphic "13" or graphic 13.
I use 13 just an example but this happens for all graphics.
I suppose 1 solution would be to prefix an alpha character to the name and then strip out later, but if i could get my head around whats happening or how live code does this, i might have a more elegant solution.