I may be wrong but I don't think 'key number' is data that exists. You store a key with a name and a value not an identifier. You could potentially store keys where the string is a number and run it through a loop : for from 0 to dictionary.keycount : log dictionary.get(""&loopindex) assuming keys are stored as "1", "2", "3" etc however that is not really running them in order it is checking that it exists and they happen to be in order.