Behavior question

dunbarx at dunbarx at
Tue Jul 21 18:24:25 EDT 2015

I am not sure I understand.

If "myButton" has a handler in its script called "loadData", then the dispatch command should work regardless of any behaviors. This is direct, message-bypassing, er, behavior.

If the behavior of  that other control, was set to the long id of "myButton", then simply invoking "loadData" from that control would cause the handler in "myButton" to fire.

Is this what you are seeing? Or not seeing?

Craig Newman

-----Original Message-----
From: Peter Haworth <pete at>
To: How to use LiveCode <use-livecode at>
Sent: Tue, Jul 21, 2015 5:05 pm
Subject: Behavior question

I have a button named "myButton" with a behavior "myBehavior" whose
includes a handler named "loadData".

>From anther control I

dispatch "loadData" to button "myButton"

The loadData handler is
not executed and the it variable contains
"unhandled" after the dispatch

That should work, shouldn't
use-livecode mailing
use-livecode at
Please visit this url to subscribe,
unsubscribe and manage your subscription


More information about the Use-livecode mailing list