New topic: IF ... THEN... I'm stuck in the loop!!
<http://forums.realsoftware.com/viewtopic.php?t=30541> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message Eclipse Post subject: IF ... THEN... I'm stuck in the loop!!Posted: Sun Oct 18, 2009 11:50 am Joined: Sat May 19, 2007 6:01 am Posts: 75 I work in the field of SEO, search enginge optimization. I need some help with the loop in this example: Code:FOR j = 0 TO UBound(myArray) bolSearch = TRUE WHILE bolSearch = TRUE strSearchString = "http://www.google.se/search?hl=sv&q=" + str(myArray(j)) + "&start=" + str(intPageLoop) strPage = http.Get(strSearchString , 30) IF Instr(strPage, TextField1.text) = 0 THEN ' ## PAGE IS NOT FOUND intPageLoop = intPageLoop + 10 intPage = intPage + 1 IF intPage = 5 THEN bolSearch = FALSE TextArea2.text = TextArea2.text + Str(j +1) + ". " + myArray(j) + " --- Page: " + str(intPage) + Chr(13) + Chr(10) _ + strSearchString + Chr(13) + Chr(10) ELSE ' ## PAGE IS FOUND bolSearch = FALSE TextArea2.text = TextArea2.text + Str(j +1) + ". " + myArray(j) + " --- Page: " + str(intPage) + Chr(13) + Chr(10) _ + strSearchString + Chr(13) + Chr(10) END IF WEND NEXT I have been working with this for some days and I seem to get it wrong... I have tried very many different types of loops and various alternatives... I'm the beginner! I know many things are not the most optimal... Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
