sender source

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mmiele
Posts: 55
Joined: Sun Jan 21, 2007 1:25 pm
Location: Naples, Italy

sender source

Post by mmiele » Wed Mar 20, 2013 11:37 am

Hi all,

It's there a way to know from the inner of a script of an object which received a message (sent via "send" or "dispatch") a reference (name or id or ...) of the sender object?

Klaus
Posts: 13863
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: sender source

Post by Klaus » Wed Mar 20, 2013 12:18 pm

Buongiorno Mario,

I am not sure, but check "executioncontexts" in the dictionary!


Best

Klaus

mmiele
Posts: 55
Joined: Sun Jan 21, 2007 1:25 pm
Location: Naples, Italy

Re: sender source

Post by mmiele » Wed Mar 20, 2013 12:44 pm

Thanks, Klaus

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: sender source

Post by jmburnod » Wed Mar 20, 2013 2:40 pm

Hi,
I tested executionContexts and it works but i saw this comment in the dictionary
Important: The value of the executionContexts may be changed in future versions of LiveCode, it is not recommended to write code that depends on its contents.
Best
Jean-Marc
https://alternatic.ch

Post Reply

Return to “Talking LiveCode”