Hi all and sorry for what is probably a very stupid question. I am trying to translate in Pascal a program written in BASIC and I am stuck with a statement for which I do not find any documentation: the statement is Select Case X Case 21, 24, 25, 27 To 32, 34, 35, 38 etc. I know e.g. Case a To b, but I am puzzled by the multiple ranges which I do not know how to understand! Thanks in advance to whomever will reply P.S. For your info the full statement is Code: Select Case X Case 21, 24, 25, 27 To 32, 34, 35, 38 temp = temp - 1 Case 33, 36, 37, 39, 40 temp = temp - 2 End Select
Code: Case 21, 24, 25, 27 To 32, 34, 35, 38 it means when X is equial to 21, 24, 25, 27, 28, 29, 30, 31 32, 34, 35, 38