' Visual Basic 2008 9.0 .NET Examples - Selections - Introduction to Visual Basic : Module ExerciseSolution Sub Main() Console.WriteLine("Value ?") Dim value As Integer = Console.ReadLine() ' Dim info As String Select Case value Case Is > 100 info = "More than 100." Case Is > 50 info = "More than 50." Case 1, 11 info = "One or eleven." Case 2 To 50 info = "Number from 1 to 50." Case 0 info = "Zero." Case -50 To -1 info = "Number from -50 to -1." Case Is < -100 info = "Less than -100." Case Is < -50 info = "Less than -50." End Select ' Console.WriteLine(info) ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.