Alessandro71 Well-Known Member Licensed User Longtime User Mar 18, 2024 #1 I don't know if this has some use case I ignore, but I think the following code (just a proof-of-concept) should trigger at least a warning in the IDE B4X: Copy Select testvalue Case 1, 1, 2, 3 'some code Case 1 'some code End Select We have a "Case" that contains the same value of another "Case", and another one that has the same value specified multiple times. The Case line containing the same value of another Case, actually happened to me by a copy/paste mistake and took a while to understand while the code flow was not what I was expecting.
I don't know if this has some use case I ignore, but I think the following code (just a proof-of-concept) should trigger at least a warning in the IDE B4X: Copy Select testvalue Case 1, 1, 2, 3 'some code Case 1 'some code End Select We have a "Case" that contains the same value of another "Case", and another one that has the same value specified multiple times. The Case line containing the same value of another Case, actually happened to me by a copy/paste mistake and took a while to understand while the code flow was not what I was expecting.