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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you break from a loop in VB 1

Status
Not open for further replies.

BPMan

Programmer
Jun 25, 2002
163
US
In c++ its just
break;
what is it in VB????
thanks
 
You might want to take a look at the Exit statement

For ix = 1 to 10
If (somecondition = true) Then
Exit For
End If
Next ix

There is also
Exit Do
Exit Sub
Exit Function
Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top