Select String Value: range : Select « Language Basics « VB.Net






Select String Value: range

Select String Value: range
Imports System

Public Class MainClass

    Shared Sub Main(ByVal args As String())
       Dim target As String = "A"
       Select Case target

          Case "A" To "M"
             Console.WriteLine("A To M executed")
          Case "N" To "Z"
             Console.WriteLine("N To Z executed")
          Case Else
             Console.WriteLine("Else executed")
       End Select
    End Sub


End Class

           
       








Related examples in the same category

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