finding the name of the target's stack in a script

Peter Haworth pete at lcsql.com
Tue Jul 24 12:21:49 EDT 2012


You could pass the stack name in to the handler as a parameter.
Pete
lcSQL Software <http://www.lcsql.com>



On Tue, Jul 24, 2012 at 8:33 AM, Dr. Hawkins <dochawk at gmail.com> wrote:

> I have a handler that needs to handle an event differently depending
> upon which substack the button calling it is on.
>
> I don't see a direct way of referencing the calling stack.
>
> There is the topStack() function, which would *seem* to necessarily
> return the relevant stack, but something makes me nervous about that.
>
> And then there is choosing word 8 of the long name of the object, but
> that seems downright reckless . . .
>
> Is tehre a "clean" way to do this?
>
> --
> The Hawkins Law Firm
> Richard E. Hawkins, Esq.
> (702) 508-8462
> HawkinsLawFirm at gmail.com
> 3025 S. Maryland Parkway
> Suite A
> Las Vegas, NV  89109
>
> _______________________________________________
> 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