Sign in to follow this  
Followers 0
cypher175

restart a loop from the begining if a function fails within the loop..?

3 posts in this topic

anybody know how to restart a (while 1 - wend) loop from the beginning if my _IEAction ($IE, "refresh") function fails within the loop becuz the browser window has been closed..??

Share this post


Link to post
Share on other sites



ContinueLoop

Example below is from help file. Uses for/next, but continue loop also works with while/wend

For $i = 1 to 10

If $i = 7 Then ContinueLoop

MsgBox(0, "The value of $i is:", $i)

Next

Share this post


Link to post
Share on other sites

as far as i can see there USED to ba a GoTo() func like in CMD prompt... but it was "Evil"... you can do this USING _DOSRun ( ':1' & @CRLF & 'Goto :1') i think...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0