PDA

View Full Version : Help For VB.NET SWITCH CASE



eyes_shut_number1
جمعه 21 اردیبهشت 1386, 21:44 عصر
Hello Everbody.I Cant type Farsi.rules of this site said FINGILISH is break the rule!
i cant good type English .sorry

who can tell me about WHITCH CASE In VB.NET?
syntax and properties
i know in C++ is this for
Switch (a)
{
;case a
Cout<<""
Break;
.
.
.
defult
{

tanx for your help

ghafoori
جمعه 21 اردیبهشت 1386, 21:59 عصر
dim a as integer
select case a
case 5
'do somthing
case 1
'
end select

choobin84
شنبه 22 اردیبهشت 1386, 06:39 صبح
I Cant type Farsi.rules of this site said FINGILISH is break the rule!


i cant good type English .sorry




بالاخره فارسی یا انگلیسی؟

SabaSabouhi
شنبه 22 اردیبهشت 1386, 09:17 صبح
Hello
Use <Select case> instead of switch
Use <Exit Select> instead of break
Use <Case else> instead of default
VB don't need a "break" statement at the end of your case block
:And also you can use complex statements like
:Case 12 to 43
:Case Is > 12


Saba Sabouhi