Back to lesson
1. What is wrong with the code below?
It should end with End Select, not End Case
End Case is showing in red, not blue
There is no variable declared for the property to test
2. You have a variable which could be 1, 2, 3, 4 or 5, and you need to do something different in each case. What is the best way to test the variable?
Using nested If statements
Using an If, Then ElseIf Then style structure
Using a Select Case statement
3. Assume you wanted to include a test in your Select Case to see if a number is not equal to 100, how would the line of code be written?
Case Is <> 100
Case Is Not = 100
Case Is <> "100"
Back to the top
© 2017 GoSkills Ltd.
Skills for career advancement