Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim major As String
major = "Computer Science"
If major = "Business" Or "Computer Science" Then
txtOutput.Text = "Yes"
End If
End Sub
答案 0 :(得分:0)
使用=
运算符
Private Sub btnDisplay_Click(...) Handles btnDisplay.Click
Dim major As String
major = "Computer Science"
If major = "Business" Or major = "Computer Science" Then
txtOutput.Text = "Yes"
End If
End Sub