I’m making a program that will be like a search engine, similar to a map program. There will be a text box for the user to search for a location. The thing I don’t know is that the user has 4 different combinations that they may enter. For example: N229 OR n229 OR N 229 OR n 229. I want the program to respond the same to all 4 possible combinations to show the same thing. Is it possible in any way to make this real?
Jump to Post
You can simplify the process by:
Convert the text to all lower case:
Dim sConversionString as String = TextBox1.Text.ToLower()
Then do something like the following:
If sConversionString.Contains("n229") Or sConversionString.Contains("n 229") Then 'Do Work End If
All 2 RepliesReply to this topic
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.