How does a command find out who called it?

J. Landman Gay jacque at hyperactivesw.com
Wed Feb 1 22:05:02 EST 2012


On 2/1/12 7:50 PM, Richard Gaskin wrote:
> Bob Sneidar wrote:
>
>> From the dictionary:
>>
>> When the send command is used the stack containing the target handler
>> temporarily becomes the defaultStack. All object references in the
>> message are evaluated in the current context i. e. the defaultStack.
>> Therefore references within the message that refer to "this card" or
>> "this stack" will be referring to the card or stack where the target
>> handler is located.
>
> Thanks.
>
> If others here can reproduce this apparent bug from the second test in
> this post I'll log it in the RQCC:
>
> <http://lists.runrev.com/pipermail/use-livecode/2012-February/167508.html>

Do you get the same results without using the message box? The way it 
has to re-interpret the message hierarchy to execute commands can throw 
things off.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list