Visual Basic Using Not Equal To Episode 38 Part 1

preview_player
Показать описание
When the button is clicked, the first thing you do is retrieve the name from the text box by looking at its Text property:
Dim strName As String
strName = txtName.Text
After you have the name, you use an If statement. This time, however, you can use teh Not Equal To Operator, rather than the Equal To operator. Also note that you are comparing two string values.
The code between Then and End If executes only if the answer to the question asked in the If statement is True. If you enter Wendy into the text box and click Check, nothing happens.
Рекомендации по теме
Комментарии
Автор

Thank you, sir. Now I can do my prelim exam.

Theendisnear
welcome to shbcf.ru