AnsweredAssumed Answered

How to find the user function name

Question asked by wangjiajun on May 20, 2011
Latest reply on Jan 28, 2013 by moconnor
I am putting together a big program with a lot of userfunctions. In order to handle the potential error messages, I am planning to put some error catching codes. For example, in the userfunction "test1", I am going to catch the potential errors and dump them into a file, in which I want to write down that the error message originates from the userfunction "test1". Of course, I also have to do this for all other user functions. Now the questions is that, how can I know the user function's name inside that user function, in order to know the name of the user function dynamically, rather than hard code them.


P.S. If there is any better way to dump the error messages, please let me know.