SlimShady 1 Posted May 6, 2004 I've got a problem. My For... doesn't work anymore. I replaced the For... with While...WEnd. It says:Error: "Wend" statement with no matching "While" statement The same thing with For.... Can someone look: expandcollapse popupFunc SearchAND($ReadLine) $FoundNum = 0 ;======Start MultiWords If $MultiWords = "Yes" Then ;=====Start searching each word $num = 1 While $i <= $Words[0] ;=====Check match $Found = StringInStr($ReadLine, $Words[$num]) If $Ignore[0] > 0 Then $num = $Ignore[0] + 1 $Ignore[$num] = StringInStr($ReadLine, "Temporary Internet Files") $exc = 1 Do $Ignore = StringInStr($ReadLine, $Ignore[$exc]) ;=======Ignore certain words If $Ignore > 0 Then $Found = 0 $exc = $exc + 1 Until $exc = $Ignore[0] If $Found > 0 Then $FoundNum = $FoundNum + 1 EndIf ;========End searching for words $i = $i + 1 WEnd If $FoundNum = $Words[0] Then $Found = 1 $FoundSomething = "yes" Else $Found = 0 EndIf ;=======If not MultiWords......... Else ;=====Check match $Found = StringInStr($ReadLine, $Words) $Ignore = StringInStr($ReadLine, "Temporary Internet Files") If $Ignore > 0 Then $Found = 0 EndIf EndFunc Share this post Link to post Share on other sites
Jos 2,209 Posted May 6, 2004 Look here for your answer--> http://www.hiddensoft.com/forum/index.php?...indpost&p=14930 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
SlimShady 1 Posted May 6, 2004 (edited) Thanks it works. Edited May 6, 2004 by SlimShady Share this post Link to post Share on other sites
scriptkitty 1 Posted May 6, 2004 btw, you would have the same issue with for...next and do..until. Same type error would come up. AutoIt3, the MACGYVER Pocket Knife for computers. Share this post Link to post Share on other sites