Wish System variables: CurrentModuleName, CurrentSubName

b4auser1

Well-Known Member
Licensed User
Longtime User
B4X:
'Code module
Sub Process_Globals
'    Private Const CurrentModuleName As String = "MyModuleName"
End Sub

...
Log($"${CurrentModuleName}.SubName(${a_arg1}, ${a_arg2}) ..."$)
...

I use code like above to get information from logs about the place in code.
Could you implement declaration of sMODULE_NAME at the system level ?
Also would be great to have similar system variable, that contains the name of Sub within which it is used.

This wish relates to all B4x products.
By the way - may be create B4x wish list where to put wishes related to all B4x products ?
 
Top