From the course: Visual Basic Essential Training

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Challenge: Logic statements and string compare

Challenge: Logic statements and string compare - Visual Basic Tutorial

From the course: Visual Basic Essential Training

Challenge: Logic statements and string compare

(upbeat instrumental music) - [Instructor] For this code challenge, you'll work with logic statements, and string comparison. The goal of this challenge is to develop an application that checks whether a user entered word or phrase is present in a sample text. Instead of searching within a single string, you'll search within two separate strings for the target word or phrase. You will then use logical statements to indicate if the search word is found in the first string, the second string or both strings. Here is an example. We're looking for the word we. It's there in the first string, and the second string, so we would output found in first, second and both. In the second example, we're looking for the word called, that's only available in the second string, so you would output found in second only. I provided a starter project as an option for creating a Windows application. You can use it or build your own system. Here is the template. I'll build my solution from this UI. At the…

Contents