How does a command find out who called it?

Mark Schonewille m.schonewille at economy-x-talk.com
Wed Feb 1 14:20:34 EST 2012


Hi Ken,

Are you sure that callback messages and messages invoked by send commands have an execution context that's longer than 1 line?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 1 feb 2012, at 19:54, Ken Ray wrote:

>> 
>> The question is: How do I know what "XXX" is in the mySocketCallback?
> 
> You can check "the executionContexts" form inside your mySocketCallback handler - it's full of info about the order of execution from the user's last event to the place where you ask for it, but you can parse it to get out what you're looking for...
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/	





More information about the use-livecode mailing list