by John Allan Lee (4 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (5 Votes)
Finds items in a ListView over multiple SubItems.
The .Find MS gave us for the ListView will only let us search the Tag, Text, or first SubItem in a. I had a list that hade several subitems and needed a search for it, so I wrote this up in a few min. I also wrote in options like MatchWholeWordOnly and CaseSensitive as optional variables.
In addition of returning the index of the item found it selects and makes sure the item is visible to the user.
Inputs
see module
Assumes
A little about a ListView (Not a ListBox)
Code Returns
see module
Upload