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.
 

Ask a Question

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.

Ask a Question

Back
Top