Actually Select Case is far superior to Jaja's switch, the Java Switch and
C++ both only use ordinals whereas Select Case can use Strings, Enumerations
and Ordinals.
\\\
Select Case foo
Case 1
...
Case 2
...
...
End Select
///
There are some differences between Java's 'switch' and 'Select Case'.
In VB.NET, you don't need a 'break' in every branch. This is inserted
automatically. 'Select Case' is more flexible in matters of datatypes
it can be used with. There can be complex conditions for the cases too.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.