Whoops: Getting the name of the script only stack an handler is in
prothero at earthlearningsolutions.org
prothero at earthlearningsolutions.org
Wed Jan 2 11:35:24 EST 2019
Bob,
Thanks for the response. You are probably right, the filename of me should work. I don’t know whether it’s old age or not, but several times I have worked on a problem until I felt I had exhausted my ideas, posted a question to this list, then a solution immediately came to mind. If this happens, I will post an update with apologies.
In the case you responded to, I was trying to find the name of the script only stack that contained the currently running handler.
Put me into thisStack —works fine
the short name of this stack —wrong, gives the name of the calling stack, in my case, anyway.
put the short name of the target —not it
“The target” is great for determining the control that initiated the script, but it does lose its original value when a “send in time” command is given, like commonly done during an animation.
Anyway, Bob, thanks for your response.
William Prothero
http://es.earthednet.org
> On Jan 2, 2019, at 8:03 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Doesn't "the filename of me" work?
>
> Bob S
>
>
>> On Dec 31, 2018, at 14:48 , William Prothero via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> My question:
>> How do I get the name of the script only stack that holds the “Feature” code? The above code gives me the name of the main stack, which is not useful for my purposes.
>>
>> Best,
>> Bill
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list