switch statement in Vb.net

Ranjeet_8
Posted by Ranjeet_8 under VB.NET category on | Points: 40 | Views : 1584
switch statement in Vb.net

Dim [Caseoption] As Integer = 3 ' Set your switch case here
Dim education As String = String.Empty
Select Case [Caseoption]
Case 1
education = "10th"
Exit Select
Case 2
education = "12th"
Exit Select
Case 3
education = "Bca"
Exit Select
Case 4
education = "Mca"
Exit Select
Case Else
education = "Please select again"
Exit Select
End Select
Response.Write(education)

Comments or Responses

Login to post response