vbdotnetxt Posted April 30, 2006 Posted April 30, 2006 I have this line of code to see if a search term is found in a string: If (myString.ToString.Contains(searchTermTB.Text)) .... The problem is that the Contains method returns TRUE, sensative to the case. For example First and fIRST are different. How can I make it case insensative? Quote
vbdotnetxt Posted April 30, 2006 Author Posted April 30, 2006 I have this line of code to see if a search term is found in a string: If (myString.ToString.Contains(searchTermTB.Text)) .... The problem is that the Contains method returns TRUE, sensative to the case. For example First and fIRST are different. How can I make it case insensative? Thanx but I resolved it: If (myString.ToString.toLower.Contains(searchTermTB.Text.toLower)) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.