I did search around before posting, if I missed the solution to this problem, please post a link so that I may solve this as well.
I'm hoping there is a simple answer to this, but I am unsure.
Basically what I have are two loops, one inside the other, that will run until the given condition is met. Exactly what I want. My problem is that I want to be able to use the controls, like buttons, while a loop is going on.
I originally did not think of this until I had built this part of my program, what I want to know is if there is a way to use controls while a loop is going on or if their is an alternative.
Just some of my ideas
1)I know timers can be used to meet these goals, but they did not work out as I had hoped and using two timers (1 to represent each loop) I do not believe is efficient.
2)I have considered using recursion, but have found this may not be very efficient either and am not quite sure if this will do what I want.
Some final notes
These loops run as long as the number the user inputted. So it could theoretically run for 100,000+ times. I am not looking for speed, but it would be good if there were a faster method that allowed me to use controls while it loops.
Thoughts or help is much appreciated.
Thanks in advance.
*NOTE* I did not believe this requires my code since this is more of a general question, if you need any more info or clarification, please let me know.