Re: any function is equal to "Switch&qu ot; in Java with VB?
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
"Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
news:ehe0N2tREH A.3528@TK2MSFTN GP09.phx.gbl...[color=blue]
> Hi Ken,
>
> Have a look at Select case
>
>[/color] http://msdn.microsoft.com/library/de...selectcase.asp[color=blue]
>
> I hope this helps?
>
> Cor
>[color=green]
> > any function is equal to "Switch" in Java with VB?[/color]
>
>[/color]
Re: any function is equal to "Switch&qu ot; in Java with VB?
* =?Utf-8?B?a2Vu?= <anonymous@disc ussions.microso ft.com> scripsit:[color=blue]
> any function is equal to "Switch" in Java with VB?[/color]
\\\
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.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Comment