How does a command find out who called it?
m.schonewille at economy-x-talk.com
Wed Feb 1 13:40:54 CST 2012
To quickly simulate a callback message, I made a button with the script
send "bla" to me in 0 secs
and a stack script
put the executioncontexts
All I get in the message box is one line, referring to the stack. I don't think your approach works for Ken Corey.
Economy-x-Talk Consulting and Software Engineering
Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
On 1 feb 2012, at 20:33, Ken Ray wrote:
> On Feb 1, 2012, at 1:20 PM, Mark Schonewille wrote:
>> Hi Ken,
>> Are you sure that callback messages and messages invoked by send commands have an execution context that's longer than 1 line?
> Well, it depends on where the executionContexts are requested; suppose you have button 1 send a message to button 2, but that is not trapped by button 2 but falls through to the card script. If the card script asks for the executionContexts, you'll get two lines - the first line being the long id of button 1, and the second being the long id of the card that had the handler that asked for the executionContexts.
> I guess it all depends on how the callbacks are being handled from "httpGet" and "mySocketOpen" in this case…
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
More information about the use-livecode