Hi guys/gals,
Hope you guys can help me on this
I'm trying to remove items from a collection if it has a duplicate from another collection
Do anyone knows how to do this?
I can use arraylist to replace it too
I have a code here which gives me error and i'm stuck on this
Collection A = getSno
Collection B = getnew
I want to check if getSno.item = getnew.items
remove
here's my current code
VB Code:
For b = getNew.Count - 1 To 0 Step -1 If getSno.Item(b) = getNew.Item(b) Then getSno.Remove(getNew.Item(b)) End If msg = Boxno & "," & getSno.Item(b) olddate.Add(msg) pretest codes") Next dg1.DataSource = olddate dg1.DataBind()
Thanks for your help guys/gals




Reply With Quote