Looping, scrolling or browsing through associative arrays
Posted: 03 Jun 2018, 02:40
Based on this thread I finally moved over to what I believe is called "associative arrays" in my work. But I ran into an obstacle. I have a lot of things I want to do that involves browsing through the array, like displaying the array in a listview, appending specific values into text files, do the same operation to all or a given set of keys, go to the "next" or "previous" key in a GUI etc.
But since the key here is an ID number, its not as easy as to simply rely on IDIndex[1] or IDIndex[A_Index] anymore.
How can I access say the #550 key in the Array, or flip between #1100-#1110 without confusing it with the actual keylabels themselves that consists of 7000 ID numbers that may span between 1 to 100000?
But since the key here is an ID number, its not as easy as to simply rely on IDIndex[1] or IDIndex[A_Index] anymore.
How can I access say the #550 key in the Array, or flip between #1100-#1110 without confusing it with the actual keylabels themselves that consists of 7000 ID numbers that may span between 1 to 100000?