matchText, does it really exist?

Jan Schenkel janschenkel at yahoo.com
Thu Jul 10 16:25:46 EDT 2008


--- Bert Shuler <bertshuler at yahoo.com> wrote:
> This code is from the docs, but seems to fail as if
> matchText is not a  
> function.
> 
> on mouseUp
>    matchText("Goodbye","bye")
> end mouseUp
> 
> executing at 4:09:47 PM
> Type	Handler: can't find handler
> Object	Button
> Line	matchText("Goodbye","bye")
> Hint	matchText
> 
> Any Ideas?
> 
> Bert
> 

Hi Bert,

'matchText' is a function, not a command - so use it
like this:
##
on mouseUp
  answer matchText("Goodbye","bye")
end mouseUp
##

Admittedly, the docs for other functions sometimes
contain a 'put xxx' example, whereas the entry for
'matchText' does not.

Jan Schenkel.

Quartam Reports & PDF Library for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


      



More information about the use-livecode mailing list