camerart
Well-Known Member
Hi,
Some time ago I was helped with writing a program, by adding CASE into it. The program worked, and I didn't think about it anymore. CASE has just cropped up again, so I had a look at it.
Here is an example from the manual:
Dim x As Byte
loop:
Select Case x
Case 255
x = 1
Case <= 127
x = x + 1
Case Else
x = 255
EndSelect
Goto loop
If the manual had said that [CASE x] is a shorter way of saying:
[If it is the CASE is that if x = 255 then 'do something'] then I would have learnt how to use CASE, and remembered it.
Camerart
Some time ago I was helped with writing a program, by adding CASE into it. The program worked, and I didn't think about it anymore. CASE has just cropped up again, so I had a look at it.
Here is an example from the manual:
Dim x As Byte
loop:
Select Case x
Case 255
x = 1
Case <= 127
x = x + 1
Case Else
x = 255
EndSelect
Goto loop
If the manual had said that [CASE x] is a shorter way of saying:
[If it is the CASE is that if x = 255 then 'do something'] then I would have learnt how to use CASE, and remembered it.
Camerart