Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

while loop vb.net

Posted on 2004-09-09
10
Medium Priority
?
1,022 Views
Last Modified: 2008-02-01
how to break out of while loop in vb.net

break is not working

thanks


0
Comment
Question by:sandeep437
10 Comments
 
LVL 3

Expert Comment

by:tomv011397
ID: 12020126
exit ... (while, for, sub, etc)

Tom
0
 
LVL 7

Accepted Solution

by:
Joe_Griffith earned 500 total points
ID: 12020388
Do While x=10
  Exit Do
Loop
0
 
LVL 4

Expert Comment

by:Javert93
ID: 12021642
VB doesn't support break or continue like C# or C++ does. You can only exit the loop using the Exit [While|Do] command.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Expert Comment

by:tomv011397
ID: 12021694
Break is used in select Case statements

Tom
0
 
LVL 14

Expert Comment

by:ptakja
ID: 12023115
Tom,

Break is not a VB.Net keyword.  VB.Net Select Case statements run until the next Case is encountered at which point execution drops to the End Select statement.

Break is used in C# and C++ to exit a Case statement.
0
 

Expert Comment

by:Ilianam
ID: 12030503
exit
0
 
LVL 2

Expert Comment

by:ahmadfuwad
ID: 12082711
use   'Exit While'  for terminating the while loop
'break' does not work in loop
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question