curiousvbnet
Programmer
Hi,
i have created a sub of search in a listview but in this sub i need to compar elements, it means : the text a user writes in a text box and the label of listview item( listview items' array if it is exact)
To make this comparision more precise [blue]i need not to consider accents because in french language , people use accents.[/blue]
How can i get off this problem concerning these accents
[blue]è, é,ê,ë ( it can bel any letter instead of 'e') [/blue]
I thought that if i ask the textbox.text to be transformed to Upper case it will remove the accents automatically but it is not the case at all
Here is the condition i need to arrange
Thanks a lot for your help
Regards.
Nathalie
i have created a sub of search in a listview but in this sub i need to compar elements, it means : the text a user writes in a text box and the label of listview item( listview items' array if it is exact)
To make this comparision more precise [blue]i need not to consider accents because in french language , people use accents.[/blue]
How can i get off this problem concerning these accents
[blue]è, é,ê,ë ( it can bel any letter instead of 'e') [/blue]
I thought that if i ask the textbox.text to be transformed to Upper case it will remove the accents automatically but it is not the case at all
Here is the condition i need to arrange
Code:
If Replace(TextBox1.Text.ToUpper.TrimEnd, "'", "''") = ListView1.Items(iItemIndex).Text.Substring(0, TextBox1.Text.TrimEnd.Length).ToUpper Then
Thanks a lot for your help
Regards.
Nathalie