Connecting Tech Pros Worldwide Forums | Help | Site Map

For Next Loop Problem vb.net - ASPX

Newbie
 
Join Date: Sep 2006
Posts: 7
#1: Feb 29 '08
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

CroCrew's Avatar
Expert
 
Join Date: Jan 2008
Location: Michigan
Posts: 338
#2: Feb 29 '08

re: For Next Loop Problem vb.net - ASPX


This is a question that belongs in the .NET forum.

http://www.thescripts.com/forum/forum131.html
Reply