2017-11-17 249 views
0

如何查找使用items.find方法设置的联系人项目的索引?找到物品后,我希望能够移动到下一个物品,但我的代码将我发送到集合中的第一个物品。我的计划的一个浓缩版本低于...使用Items.find查找Item.index

dim ColItms as items 
dim CI as contactItem 
Dim CIindex as integer 

set CI= ColItms.find("[CompanyName] = ""IBM""") 
CIindex = CI.???? ''''' This shows what I'm wanting to do, but don't know how 

' now advance to next item in collection 
set ci = ColItms.item(CIindex +1) ' i think this would work if I could find CIindex 

set ci = ColItms.GetNext ' this fails as it returns the 1st item in the collection 

现在一切似乎工作是遍历集合中的每个项目,看它是否找到联系人匹配,

回答

0

项目没有内在指标,只有一个条目id。 要查找下一场比赛,请使用Items.FindNext