You could be away and not using the forum as often as you used to, but anyway I wanted to ask a question of you.
I'm working on a lotto project, and I've been trying to find a lightning fast search function, so I could look up in minutes matching numbers and combinations of numbers. I've got some solutions, but they take a lot of time searching the matches.
Let me show you what I've got:
![Image](http://www.fotolukpress.com/images/lotto.jpg)
Basically, I'm using InStrB in my search function, but like I said it takes too much time.
For i = 0 to 14000
If InStrB(LB(i), "24") And InStrB(LB(i), "49") Then 'looking for a matching pair of 24 & 49 in a draw
iPair = iPair + 1
End If
Next
Do you happen to know of a better solution speed-wise? Or maybe a similar function is already implemented in the ExplorerListView, possibly under FindVirtualItem sub. I would really appreciate it if you could share your knowledge on this subject.
Kind regards,
engee30