I seem to be going wrong:

I have a fld "WERBS" containing:

found
returned
become

and my test to be analysed in a fld "TEKST":

My Dad ate cheese.
My Mum and Dad were returned home when it began to rain.
He had a house in Spain.
They were become hairdressers.
They were found.
finalSolution666

But this:

on mouseUp
   put 1 into textLine
   put fld "WERBS" into $WERBS
   put fld "TEKST" into $TEKST
   put 1 into cookedLine
   repeat until line textLine of $TEKST contains "finalSolution666"
      put 1 into verbLine
      repeat until line verbLine of $WERBS is empty
         put line verbLine of $WERBS into WERB
         put "were" && WERB into FRAZE
         if line textLine $TEKST contains FRAZE then
            put line textLine $TEKST into line cookedLine of fld "COOKED"
            add 1 to cookedLine
         end if
         add 1 to verbLine
      end repeat
      add 1 to textLine
   end repeat
end mouseUp

put only "They were found" in line 1 of fld "COOKED"

something wrong with my counters ????

Richmond.


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to