Page 1 of 1

Dynamic text formatting

Posted: Tue Nov 19, 2013 9:54 am
by mwilk
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.

Re: Dynamic text formatting

Posted: Thu Nov 21, 2013 12:11 pm
by luke.watson
@mwilk,
Pardon me if this isn't what you're looking for, but have you tried using aliases?

Re: Dynamic text formatting

Posted: Thu Dec 19, 2013 9:32 am
by mwilk
luke.watson wrote:@mwilk,
Pardon me if this isn't what you're looking for, but have you tried using aliases?
No I haven't. I'm not familiar, so I'll look into it.