+ 1
Can you use strings in switch statements?
6 Answers
+ 2
Could I use enumeration
+ 2
If you bothered to read the stuff Martin posted, you would have gotten your answer. Basically, you need something that can be evaluated as an integer. Enumeration assigns an integer value to each name.
+ 1
I did read it. I was just wondering if it would work.
- 1
yes it will work.
you can use string in statements but you must always use ( "" )