endselect.bmx 243 B

12345678910111213141516
  1. Rem
  2. EndSelect marks the end of a Select block.
  3. End Rem
  4. SeedRnd MilliSecs()
  5. a=Rand(5)
  6. Select a
  7. Case 1 Print "one"
  8. Case 2 Print "two"
  9. Case 3 Print "three"
  10. Case 4 Print "four"
  11. Case 5 Print "five"
  12. Default Print "Program Error"
  13. End Select