VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

modEnhListViewFind

John Allan Lee  (4 Submissions)   VB function enhancement   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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)

Returns
see module

Rate modEnhListViewFind (6(6 Vote))
modEnhListViewFind.bas

modEnhListViewFind Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters