I come from a C/Java background where switch cases have a cascading effect unless you put a break statement
switch(index)
{
case 0: doSomething();
case 1: doSomethingElse();
// ...
}
So case 0 cascades to case 1.
Is this the case with VB? Will case 0 cascade to case 1 automatically as above?
Select Case Index
Case 0 ' code
Case 1 ' code
...
End Select
No, the Select/Case in VB6 does not have a “break” statement. In fact, I don’t think that “break” is even a reserved word in VB6.
If code in case 0 runs, then it will not cascade to case 1.