bugcoder Posted October 18, 2012 Share Posted October 18, 2012 hi, i want the foreach loop to exit right away when i get warning message. How can I know that i have got warning while looping as foreach continues looping even if warning comes. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted October 18, 2012 Share Posted October 18, 2012 You just need to change line 42, obviously. Quote Link to comment Share on other sites More sharing options...
Jessica Posted October 18, 2012 Share Posted October 18, 2012 try using break; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.