And how they work …..
In a bug report I made I posted a tiny sample of code
Dim tokens() As String
Select Case True
Case tokens.ubound < 0
Case tokens(0) = "End"
Case "Dim"
break
End Select
(Not this code has a known bug in it – Case “Dim” is wrong but it illustrated the bug I was reporting) I’ve used this style for very long sections of code esp where I dont want to clutter it up with extraneous “if then” or “elseif”
But it gathered a curious comment that convinced me the writer of that comment isnt certain how SELECT CASE works.… Read the rest