Select Integer : Select « Language Basics « VB.Net

Select Integer

Select Integer
Imports System

public class MainClass
    Shared Sub Main()
       Dim targetInteger As Integer = 15

       Select targetInteger
          Case 5
          Case 10
          Case 15
          Case Else
             Console.WriteLine("Value not found")
       End Select
    End Sub

End Class


Related examples in the same category

1.Select rangeSelect range
2.Select with conditionSelect with condition
3.Select Integer ValueSelect Integer Value
4.Select with CompareSelect with Compare
5.Select String ValueSelect String Value
6.Select String Value: rangeSelect String Value: range
7.Select Case DemoSelect Case Demo
8.Select Else DemoSelect Else Demo