TAdvTreeView: FindNodeByTextAndColumn does not allow spaces

This function only works if the text being searched for does not contain spaces. The function calls MatchStrEx to compare the search against the contents of the specified column of every node, but MatchStrEx strips all spaces out of the search text but not out of the text to search. Using a search term that contains spaces will therefore never succeed.

Please add double quotes to search for strings with spaces. Below is a code snippet that returns the node with a specific value with a space:

AdvTreeView1.FindNodeByTextAndColumn('"A5 Series"', 0, True, False);

Something else to add to the next version of the manual ;-)

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.