Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

continue

Status
Not open for further replies.

gxdragon

Programmer
Feb 6, 2001
23
0
0
US
Does VB have a command similiar to the C continue command.

In C the continue command takes you back to the first line in a loop without executing the commands that follow the continue command.
 
I could not find anything in MSDN. What I normally do is use an If...Then condition. If the condition is such that you do not want the rest of the code to execute, you can normally configure the conditional processing to have the other lines in the Else statement - much better programming technique than having "jumps" in your code.

Simon
 
Do Until yourvariable = something
yourcommands
Loop

or

Do Until IsEmpty(yourvariable)
yourcommands
Loop
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top