Thread: For....Loop
View Single Post
  #2 (permalink)  
Old February 3rd, 2005, 01:15 AM
Vadivel Vadivel is offline
Friend of Wrox
 
Join Date: Dec 2004
Location: Chennai, Tamil nadu, India.
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

How about setting a boolean flag to false when some condition fails. Check this boolean flag before continuing with your other steps / process .. if its true don't process it.

0. Flag = true
1. For Loop
2. You Condition Fails --- so Flag = false
3. If Flag <> false Then
4. Rest of the processing comes here
5. If loop ends here
6. For loop ends here

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
Reply With Quote