【发布时间】:2011-08-07 19:47:34
【问题描述】:
在我向 VBA 集合添加一些值后,有什么方法可以保留所有键的列表吗?
例如
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"
我知道如何保留字符串列表:
first string
second string
third string
再说一遍:有没有办法保留密钥?
first key
second key
third key
注意:我通过 AutoCAD 2007 使用 VBA
【问题讨论】:
标签: vba collections