There is no direct equivalent to the continue statemement in JAVA.
Generally, what you show would be done just using a block IF statement
Do While i < someLength
' do some stuff
if Not condition then
' more stuff
end if
i = i + 1
Next
--
Regards,
Tom Ogilvy
"rozner" wrote in
message ...
Hi,
I found the "continue" statement in VB documentation but I think it was
only for .NET, it doesn't seem to compile with Excel and VBA. Is there a
way to do this?
I have some code in Java I am trying to use in macro. I'm looking for
the Java equivalent of:
Code:
--------------------
for (int i=0; i<someLength; i++) {
// do some stuff
if (condition) {
continue;
}
// more stuff
}
--------------------
I haven't done VB in a while but I was thinking perhaps a goto
statement may work. Any suggestions on this? Thanks a lot
--
rozner
------------------------------------------------------------------------
rozner's Profile:
http://www.excelforum.com/member.php...o&userid=25794
View this thread: http://www.excelforum.com/showthread...hreadid=391982