数组去重复[vbs]
摘要:
Function quchongfu(srcstr,ig,sp)Dim objDict,x,ysrcarr=split(Trim(srcstr),sp)Set objDict=createobject("Scripting.Dictionary")For Each x In srcArrIf x<>"" Then If ig=True Then y=LCase(x)Elsey=xEnd IfIf Not objDict.Exists(y) Then objDict.Add x,yEnd If Nextx=Join(objDict.Items, 阅读全文
posted @ 2013-04-21 19:07 巍 巍 阅读(430) 评论(0) 推荐(0) 编辑