Jane Austen's peculiarity

Richmond richmondmathewson at gmail.com
Sat Aug 8 15:41:02 EDT 2015


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.





More information about the use-livecode mailing list