By the way, VB, having the same underlying architecture, allows much more flexible Select Case
statements (the above code would work in VB) and still produces efficient code where this is possible so the argument by techical constraint has to be considered carefully.