Sign in to follow this  
Followers 0
Wolfiesaxah

Immediate WEnd

4 posts in this topic

Hello, is there a way to skip a loop and go back to the first part of the loop? It's hard to explain but here's my sample code:

While 1
   Local $catchbox = MsgBox($MB_OKCANCEL, "Question", "Continue processing?", 0)
   if $catchbox == 2 Then
         WEnd
   Else
        
        ;"Processing" scripts here....


   EndIf  
WEnd
 
Basically my auto-it opens web pages or websites from a list. It will be opening 300 webpages and processing each. When it opens Page 1 it does some scripts then goes back to start of the "While" loop to open another page, so on and so fort. The problem is if the page is blank or does not contain the info to process. I need it to skip processing the blank page but continue opening the other pages. I tried using WEnd thinking that returns the focus back to line 1 but it gave me error for using WEnd with no matching While.

Share this post


Link to post
Share on other sites



That, or basic logic:

While 1
   Local $catchbox = MsgBox($MB_OKCANCEL, "Question", "Continue processing?", 0)
   if Not ($catchbox == 2) Then
        
        ;"Processing" scripts here....


   EndIf  
WEnd

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

jchd in my confusion and rushing to finish this prototype in time I forgot I could use a script as simple as that. :D Thanks guys, both your answers worked.

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