matchText handler not found

Sarah Reichelt sarah.reichelt at gmail.com
Tue Oct 11 18:18:06 EDT 2005


> After yesterday's good advice on regex, I wanted to try "matchText". My
> installation (2.5.1) doesn't find the  handler. Is there something
> special about the matchText function. In fact, I don't recall any of the
> documented functions being found.
>

matchText is a function, not a handler. If you don't give it somewhere
to put the result, you will get an error.

This script works perfectly:
on mouseUp
   put matchText("Goodbye","bye")
end mouseUp

This gives the "handler not found" error:
on mouseUp
   matchText("Goodbye","bye")
end mouseUp

HTH,
Sarah



More information about the use-livecode mailing list