Select Case

Description :

A Select Case statement can be used to select between a list of alternatives.

Syntax :

Select Case test_expression

Example :

 

Select Case test_expression

   Case expression_list1

      [statements]

   Case expression_list 2

      [statements]

   Case Else

      [case statements]

End Select

Select Case Binnumber (count)

   Case 1

      Call updatebin (1)

   Case 2

      Call updatebin (2)

   Case 3, 4

      Call updatebin (1)

      Call updatebin (2)

   Case 5 to 7

      Call updatebin (7)

   Case Else

      Call updatebin (8)

End Select