So simple...
Public
Function RemoveALDuplicates(ByRef alList As ArrayList) As ArrayListDim
ret As New ArrayList Dim iCount As Integer For iCount = 0 To alList.Count - 1 Dim sObj As String 'or whatever the object type issObj = alList(iCount)
If ret.Contains(sObj) = False Thenret.Add(sObj)
End If Next Return ret Return retEnd Function
No comments:
Post a Comment