Behavior question

Peter Haworth pete at lcsql.com
Wed Jul 22 00:52:45 CEST 2015


Thanks Jacque, that might have yielded a clue. When I use send, I get a
runtime error "can't find handler".

I've had issues in the past with behavior references not being resolved, to
the extent that I wrote a handler to re-establish all object behavior
references when my stack opens.  Maybe this is another manifestation of
that problem.

Pete



On Tue, Jul 21, 2015 at 3:31 PM J. Landman Gay <jacque at hyperactivesw.com>
wrote:

> On 7/21/2015 4:02 PM, Peter Haworth wrote:
> > I have a button named "myButton" with a behavior "myBehavior" whose
> script
> > includes a handler named "loadData".
> >
> >>From anther control I execute:
> >
> > dispatch "loadData" to button "myButton"
> >
> > The loadData handler is not executed and the it variable contains
> > "unhandled" after the dispatch command.
> >
> > That should work, shouldn't it?
>
> Onoe would think so. Does "send" work? It traverses the message
> hierarchy a little differently.
>
> --
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list