【发布时间】:2021-06-22 23:06:01
【问题描述】:
我想在 Visual Basic 6.0 中检查集合变量是否包含键 下面是我拥有的集合变量
pcolFields As Collection
我想检查它是否包含字段 Event_Code。我正在这样做,但它对我不起作用。
If IsMissing(pcolFields("Event_Code")) = False Then
'Do Something
End If
【问题讨论】:
-
你也可以得到一些帮助here。
-
对于fastest possible implementation,您需要一个定制的类型库,并调整
ICollection接口。
标签: vb6