Obtaining names of current and calling handlers?

Lyn Teyla lyn.teyla at gmail.com
Thu Feb 12 00:50:23 EST 2015


Hi all,


1. How does one obtain the name (and its location/object) of the handler/function that called the current handler/function?

----------------
on cheers
   hello
end cheers

on hello
   put the name of the calling handler -- hypothetical; would have returned "cheers"
end hello
----------------


2. How does one obtain the name of the current handler/function that's running?

----------------
on hello
   put the name of this handler -- hypothetical; would have returned "hello"
end hello
----------------


Thanks in advance for any insight.

Lyn







More information about the Use-livecode mailing list