Michael W. Ryder wrote: > I think what you were trying to do > would have worked in C as the case statements keep executing until they > hit a break. In C if there is no break it will fall through, yes, but that would hardly result in the behaviour the OP wanted. Take this for example: #include <stdio.h> int main(int argc, char** argv) { int i = 0; switch(i) { case 0: i = 2; case 1: printf("i is one (except it's not)\n"); case 2: break; } return 0; } I assume the OP would want that to execute the 0 case and then the 2 case, but it executes all three. I also assume that if the 2 case would set i to 0 again, the OP would want it to start over again, which it also won't. HTH, Sebastian -- Jabber: sepp2k / jabber.org ICQ: 205544826