So, I have something like the following in Vb6;
Select case Case
case "Case0"
...
case "Case1"
if Condition Then
Exit Select
End If
*Perform action*
case "Case2"
...
End Select
But for some reason mine Exit Selectgives an error Expected: Do or For or Sub or Function or Property. I know, not really. Should I use something else? I could just use the instructions ifand not leave the case earlier, but for this I would need to duplicate the code that I want to avoid. Any help would be really appreciated.
Update
I tried to change Exit Selectto End Selectand got an error End Select without Select Case. It is definitely within Select Caseand End Select.
source
share