Hi
I wonder if it is possible to iterate through the keys in a collection. Something like this:
I want the result to be "key1", "key2" and "key3"
I wonder if it is possible to iterate through the keys in a collection. Something like this:
Code:
Dim col As New Collection
col.Add "value1", "key1"
col.Add "value2", "key2"
col.Add "value3", "key3"
For Each key In col.keySet
MsgBox (key)
Next
I want the result to be "key1", "key2" and "key3"