I have created a data display where elements of an array are shown. If an array has, let's say, 10 elements, I am trying to create an action button which will allow me to scroll forwards and backwards through the elements chronologically. I created parallel arrays with dates and values. Does anyone know how to scroll through these arrays with an action button? Thanks in advance for any help!
How you are displaying the elements now is probably the key to getting something like this to work. if you have a function that just loops through the array, and grabs elements 1-10 to display on the Data item, you could then have the Action Button start at 11 and loop through 10 times. Have a variable to keep track of how big the array is, and which section you are currently on, and this could work pretty easily.
If you need more specifics, let me know, and we can look at some actual code to get this up and running. ^_^
Suggest attempting to use intrinsic functionality whenever possible. Concatenate your strings, and use a standard list box with scroll bars.
Thank you. The trouble is, I wrote formatted text to a global variable and stored that in an observation term. But I definitely need reminding that sometimes the KISS method is the best. I have a bad habit of trying to get fancy!
Thank you! I was thinking about it all wrong. I was creating an array FIRST, then trying to get elements out. After I read your comment, I started at the root and used the action button to address the number of times to loop through the array! Again, I tried to fancy it up. After your comment, I came out with a very simple code. Thanks!