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 <[email protected]> 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 | [email protected] > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
