Jump to content
Sign in to follow this  
Fossil Rock

_ListView_FindInText

Recommended Posts

Fossil Rock

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

Share this post


Link to post
Share on other sites
Fossil Rock

Thanks for the fast reply Zedna, I'll give it a shot.


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

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites
Fossil Rock

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.