Code: Select all
put "" into field "tableDiscrep" of card "cardCalculate" of me
So I was wondering - who is "me" here?
This line is in a stack-only script which is a behaviour of the main stack. The main stack has a card by this name.
This Livecode wiki page https://livecode.fandom.com/wiki/Me says
So I would have thought that the stack is "me" but it seems not. Is the behaviour "me"?If me is executed in a behavior script, then me refers to the object that is executing the behavior script.
Oh yeah, this line is in a handler, which is called from another handler within the same script - but that handler is called from another script in another stack. In fact, it is being called from the behaviour script of cardCalculate, the card that can't be found.
It does seem to work if I specify the stack name rather than use "me", but I'd like to know who "me" is in here.
Thanks.