Post a Reply

Replies

You need an 'Exit Sub' statement before the 'la:' label; otherwise the code underneath is executed one more time afterthe statement 'Console.WriteLine("result" & c)' is processed.

Have a look at your Inmediate Window (CTRL-G) for a detail of exceptions generated by your code.

BTW 'On Error Goto (Label)' and 'RESUME NEXT' is fairly old style coding practice, going back to Microsoft GWBASIC in MS-DOS and CP/M. I would say the code is deprecated nowadays. You might have a look at try...catch instead.