问题描述
我有一个值列表 list1 和另一个包含 list1 值的 list2。我想验证 list1 的内容是否存在于 list2 中?任何人都可以帮助我用任何特定的方法来验证这一点吗? 我不想使用基本的循环方法,因为它会花费很多时间来执行。 我试过下面的代码,但没有用:
代码:
Set headerInfo = CreateObject.("System.Collections.ArrayList")
//...add few values in list..
Set generalInfo = CreateObject.("System.Collections.ArrayList")
//...add values including the one which are present in above list...
For i=0 to headerInfo.Count-1 step 1
If Ubound(Filter(generalInfo,headerInfo(i))) Then
print "string present"
EndIf
Next
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)