-
I was wondering how to use the listview.finditem before loading items into the list, then form an if statement on either not adding if it is allready there and adding if it isn't..... can anyone tell me how this is done? or if there is an easier way to prevent duplicate items plz let me know, thanks
-
You could use a key. When there's the same key twice an error occurs.
Code:
On Error Resume Next
ListView1.ListItems.Add , Key, Text
If Err.Number <> 0 Then 'The key exists twice
'do some handling stuff...
End If
Err.Clear
Hope this helps,
Dennis.