any function is equal to "Switch" in Java with VB?

  • Thread starter Thread starter Guest
  • Start date Start date
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.

Regards - OHM
 
* =?Utf-8?B?a2Vu?= said:
any function is equal to "Switch" in Java with VB?

\\\
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.
 
Back
Top