Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exiting For statement
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
I have 3 For statements. I have an If x = 2, I want the k For loop to Exit. But, instead the i For loop i[/quote]s being exited.

Code:
For i = 1 to 4
  For j = 1 tp 5
     For k = 1 to 6
         If x = 2 then
            Exit For
         End If
     Next
  Next
Next

How can I Exit the k For loop?
Reply


Messages In This Thread
Exiting For statement - by mv8167 - 10-03-2011, 10:51 PM
RE: Exiting For statement - by supputuri - 10-03-2011, 11:16 PM
RE: Exiting For statement - by mv8167 - 10-04-2011, 12:14 AM
RE: Exiting For statement - by parminderdhiman84 - 10-04-2011, 08:22 AM
RE: Exiting For statement - by mv8167 - 10-05-2011, 09:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error when exiting windows application qtpbegin 0 2,169 07-21-2012, 05:20 PM
Last Post: qtpbegin

Forum Jump:


Users browsing this thread: 1 Guest(s)