a question about for loop
Bonjour the problem I try to solve refers to a for loop which i try to stop whenever i press a clear button. I other words, I have a for loop that executes a number of task that last about 30minutes. the problem is, that I have no idea about how to quit such loop before the number of iteration is reached Thank you in advance for your help Regards Gerard -- Gérard Férini Switzerland
Re: a question about for loop
Thanks Shane for your reply. As a matter of fact, I'm going to choose the first option you mentionned hereby since I think it's the best option. Nice of you to have answered Regards Gerard -- Gérard Férini Switzerland http://home.tiscalinet.ch/gferini/ shoneill [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Gérard, you have two main options either replace the for loop with a while loop (N needs to be determined programatically) or place the contents of the FOR loop in a case statement, leaving one case empty. By pressing a button linked to the case statement, the calculations for the remaining iterations can basically be skipped. The current iteration will still execute to completion though. Hope this helps Shane.
Re: a question about for loop
Hi G=E9rard, you have two main options either replace the for loop with a while loop (N needs to be determined programatically) or place the contents of the FOR loop in a case statement, leaving one case empty. By pressing a button linked to the case statement, the calculations for the remaining iterations can basically be skipped. The current iteration will still execute to completion though. Hope this helps Shane.