How I check if words from two fields match?

Richmond Mathewson richmondmathewson at gmail.com
Fri Sep 18 15:43:24 EDT 2009


William de Smet wrote:
> Hi there all,
>
> I have a field "number 1" with a word in it (put in by user)
> Next I am putting a lot of words from a remote .txt file into another field
> "number 2".
> How do I check if the word from fld "number1" is within the words of fld
> "number2"?
>
> For now I use:
> find string the text of fld "number1" in fld "number2"
>
> But how do I proceed?
> When they match I want to use something like: answer "Well done!"
>
> Greetings,
>
> William
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>   
on mouseUp
   put fld "Field1" into TWORD
   put fld "Field2" into TSTRING
   if TSTRING contains TWORD then put "Well Done!" into fld "Field3"
end mouseUp



More information about the use-livecode mailing list