After I add some values to the VBA collection, is there any way to retain the list of all keys?
For example
Dim coll as new Collection
Dim str1, str2, str3
str1="first string"
str2="second string"
str3="third string"
coll.add str1, "first key"
coll.add str2, "second key"
coll.add str3, "third key"
I know how to retain the list of strings:
first string
second string
third string
Once again: is there any way to retain the keys?
first key
second key
third key
Note: I'm using VBA through AutoCAD 2007
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…