Jump to content

_ListView_FindInText


 Share

Recommended Posts

I need to find an exact match using the line below. There are a total of 4 unique items. 3 items that will partial match and 1 that is an exact match (case insensitive).

_ListView_ClickItem($hWnd, _ListView_FindInText($hWnd, $sText) & _ListView_FindInText($hWnd, $sText)

So far as I have found, it will always find the first match, partial or not.

If there is no option for an exact match, what would be the best method to determine an exact match?

Note: I've loaded the listview into an array and it shows the 4 unique items. I'm trying to avoid loading the listview into an array to find and select the item I'm looking for.

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Link to comment
Share on other sites

Sorry, no go... When I set $fPartialOK to False I get no results.

Edit: This may be the problem .... _ListView_FindText "The search is case insensitive. The search is performed on the item only. Use _ListView_FindInText if you want to search for the text in subitems."

Both items I'm checking are subitems.

Edited by Fossil Rock

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...