"break" statament in vb.net?

T

theath

hi, i'd like to do something like

while(x)
if(y) break
...
end while

what is the equivalent of java's break statement in vb.net? i don't
want to use a goto :)
 
M

Marina

Exit While for when you are in a while loop. Exit For when you are in a for
loop.

There is no equivalent to 'continue', unfortunately.
 
H

Herfried K. Wagner [MVP]

hi, i'd like to do something like

while(x)
if(y) break
...
end while

what is the equivalent of java's break statement in vb.net?

'Exit While'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top