CurrentMethodName
From Real Software Documentation
Method
Contains the fully-qualified name of the method or event that it is in.
Syntax
result=CurrentMethodName
| Part | Type | Description |
|---|---|---|
| result | String | The name of the method or event that contains the constant. |
Notes
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
Const CurrentMethodName="methodName"
Where methodName is the fully-qualified name. For example, if you create a method on Window1, "MyMethod," then CurrentMethodName will equal "Window1.MyMethod".
Example
If you call CurrentMethodName in the MouseEnter event of Rectangle1 in Window1, then CurrentMethodName will contain "Window1.Rectangle1.MouseEnter". The MouseEnter event is simply:
MsgBox CurrentMethodName
