|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Christophe Guibert
|
Feb 12, 2008 - 2:58 AM
|
Hello,
The CExtGridCellComboBox::FindString() method returns the first list item that contains the searched string. Is this on purpose ? One might rather expect the method to return the exact matching string (case sensitive or not).
In other words, if the CExtGridCellComboBox contains three items : "first string", "string", and "other string", I would like the method to return the second item when I search for "string", instead of returning "first string".
A solution could be to replace the str1.Find(str2) call, by (str1 == str2) test.
There might also be other Prof-UIS objects with the same behavior, such as list boxes or menus. Seen on Prof-UIS 2.82.
Thank you for your answer, and best regards,
Christophe Guibert
|
|
Christophe Guibert
|
Feb 12, 2008 - 1:27 PM
|
Thank you for this answer, I will use the FindStringExact() method.
Best Regards,
Christophe Guibert
|
|
Technical Support
|
Feb 12, 2008 - 12:18 PM
|
The CExtGridCellComboBox::FindString() method works as it was designed. You should use the CExtGridCellComboBox::FindStringExact() method which searches for the first list-box string in the cell combo box that matches the specified string. Note the search is not case sensitive.
|
|