Can I find out what handler I am in?

Mark Wieder ahsoftware at sonic.net
Fri Oct 25 14:14:58 EDT 2019


On 10/25/19 11:00 AM, Richard Gaskin via use-livecode wrote:
> Tom Glod wrote:
> 
>  > But is there a function that I can call inside a handler that will
>  > tell me the name of the handler?
> 
> I'm curious: what are you doing that needs this?
> 

Not Tom, but...

I do this all the time when I need to print a debugging message to the 
messagebox. Sometimes handlers abort before getting to important 
statements and by placing these statements at various points I can tell 
whether or not a handler got triggered.

put param(0) & cr after msg

-- 
  Mark Wieder
  ahsoftware at gmail.com




More information about the use-livecode mailing list