I'm working on a skin that has lots of numbered meter groups:
- Each group has a container (box1, box2, ... , box100) with components that are named so they can be derived from the #CURRENTSECTION# variable of its container (box1_text, box1_icon, etc).
- Each component meter name is also used as a variable to store user defined inputs.
- When the user interacts with a container "box", it writes the #CURRENTSECTION# key value to the #ACTIVEBOX# variable which can then be used to reference other related measures/meters (#ACTIVEBOX#_text, #ACTIVEBOX#_icon, etc)
For example: user wants to insert blank box in slot 75. The contents of all box99_***** variables would be copied to box100, and so on until box75 gets copied to box76 leaving box75 blank.
I have tried using several combinations of ActionTimer/Calc measures, nested variables with both !WriteKeyValue and !SetVariable, starting at 100 and counting down (with clamp) to the current box, adding !Update at the end of each cycle, but for some reason I cannot seem to get it working.
Rather than share my admittedly sloppy attempts, I am curious how a more experienced developer would attempt to achieve this in their own skin so that I may try adapting it to work with my version?