Search code examples
cvb6

C/C++ 'continue' Equivalent in VB6


Is there a VB6 equivalent to the C/C++ 'continue' keyword?

In C/C++, the command 'continue' starts the next iteration of the loop.

Of course, other equivalents exist. I could put the remaining code of the loop in an if-statement. Alternatively, I could use a goto. (Ugh!)


Solution

  • There is no equivalent in VB6, but later versions of VB do introduce this keyword.

    Perhaps you can restructure your code to either add an if statement or have the loop just call a function that you can return from.