From Xojo Documentation
Contains the fully-qualified name of the method or event that it is in.
result = CurrentMethodName
|result||String / Text||The name of the method or event that contains the constant.|
You can use this for logging purposes to identify methods that were called and code that was run.
The CurrentMethodName constant automatically contains the fully-qualified name of the method or event that contains the constant. It is equivalent to a manual declaration such as
Where methodName is the fully-qualified name. For example, if you create a method on Window1, "MyMethod," then CurrentMethodName will equal "Window1.MyMethod".
This logs the method name when it runs: