Back again already!
This time I'm trying to make an ordered list out of private variables from different objects. The goal is to make a "ranking" that the player can check, to see how well he/she is doing against some predetermined rivals.
What I have done so far is storing those values in a hashtable, which works fine. The next part I can't really figure out:
I want to show a list that has the name of each key along with it's value - the list should then be ordered, so the key with the highest value is on top.
My attempt: I tried improvising a bit following the example in this thread: viewtopic.php?p=38394#p38394
(for each key: create dummy object, set value.
for each dummy ordered by value: set text to dummy.Value('Name')& " - " & dummy.Value('Rank')&Newline)
There are 3 keys in the hashtable, but when I run the layout, it only ever shows the very last key and value.
Correct my noobish ways! What is a good way of making a list from a hashtable?