Dynamic text formatting
Posted: Tue Nov 19, 2013 9:54 am
I want to display an array of values. Currently, I have a screen that displays a table of the values, with a label next to each value. The labels are simple text boxes, each has a text value hardcoded.
So the display looks something like this:
"00" = value[0]
"01" = value[1]
...
"99" = value[99]
I'd like to redefine the display in such a way that I can add a button to the screen that says "Next" and "Back". "Next" would increment a variable and "Back" would decrement that variable (call it page_num for example).
Then, I'd like to be able to change the way I display to this:
text( (page_num * 100) + 0)
text( (page_num * 100) ) + 1)
..
text( (page_num * 100) ) + 99)
or similar.
Is a script the only way to do this?
Thanks.
So the display looks something like this:
"00" = value[0]
"01" = value[1]
...
"99" = value[99]
I'd like to redefine the display in such a way that I can add a button to the screen that says "Next" and "Back". "Next" would increment a variable and "Back" would decrement that variable (call it page_num for example).
Then, I'd like to be able to change the way I display to this:
text( (page_num * 100) + 0)
text( (page_num * 100) ) + 1)
..
text( (page_num * 100) ) + 99)
or similar.
Is a script the only way to do this?
Thanks.