How do you break a FOR Loop in ASP?

Posted on 2004-11-11
Medium Priority
Last Modified: 2008-03-17
I was wondering if anyone knows how to break a for loop? I tried using simply 'break' but that did not work...

for jr = 2 to (aQtyBK(1,1)+1)

****code and other conditional statements****


Thanks in advance..
Question by:csingsaas
  • 2

Accepted Solution

ryerras earned 375 total points
ID: 12561991
Looks like you are using VB.NET. In VB.NET, to exit a for loop you should use "Exit For"

 If(//condition ) Then
      Exit For
End If

Expert Comment

ID: 12562143
And the reason for grade B is??

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 1 hour left to enroll

864 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