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 <[email protected]> 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
> [email protected]
> 3025 S. Maryland Parkway
> Suite A
> Las Vegas, NV  89109
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to