The type I am placing into the list looks like this:
Expand|Select|Wrap|Line Numbers
- Structure MyType
- Dim FileName as String
- Dim FileDate as String
- Dim FileSize as String
- Dim NewPath as String
- End Structure
- Dim MyList as ListOf(MyType)
Expand|Select|Wrap|Line Numbers
- If MyList.Contains(sNewEntry) = False then
- MyList.Add(sNewEntry)
- End if
I *thought* it would be faster to try
Expand|Select|Wrap|Line Numbers
- If MyList.BinarySearch(sNewEntry) < 0 then
- MyList.Add(sNewEntry)
- End if
I also thought I might throw a hash into the structure and then force the CONTAINS or BINARYSEARCH method to only compare hashes - but I just can't figure out how to do that... Also - just how unique is the default hash?
Any suggestions would be very much appreciated!
If I stumble across a better solution I will be sure to post it here - I loath threads without answers!
Thanks all!