I am running a web application and processing some data within a loop under certain situation s I would like a button to be displayed and the user to run the code behind the button and then return to processing the loop I don’t want to exit for loop I just want to do some additional processing and continue until the end of the loop. The code below may be over simplified but the problem is still essentially the same. How can I stop the loop run some code and resume?
Thanks any help would be aprreciated
For x = 0 to 100
Keep doing stuff
-----------
------------
‘Here we had a condition that occurs more than once within the loop
if (x= 13 or x =76 or x= 90 ) then
‘Allow the user to click button1 and run the code for
‘And then Resume Don’t just display the button and
‘And Fly past
button1.visible = true
End if
Next
Thanks any help would be aprreciated
For x = 0 to 100
Keep doing stuff
-----------
------------
‘Here we had a condition that occurs more than once within the loop
if (x= 13 or x =76 or x= 90 ) then
‘Allow the user to click button1 and run the code for
‘And then Resume Don’t just display the button and
‘And Fly past
button1.visible = true
End if
Next
Comment