Android Question Get Current Sub Name In Code

andrewj

Active Member
Licensed User
Longtime User
Hi,
Is there any way to get the current Sub name from within it? I'd like to develop a generic error handling routine which includes this information in the logs. When I did something similar in VB and VB.Net I had to manually set a string in each routine, which is a pain, and I'm wondering if there's a better solution.

Thanks
Andrew
 

mangojack

Expert
Licensed User
Longtime User
Andrew .. This has been asked before and the answer was no.
If I recall right the solution was to set the subs name to a process global variable .. wich is pretty much what you were doing previously in Vb
 
Upvote 0

andrewj

Active Member
Licensed User
Longtime User
Thanks. It will be interesting to see if Erel can think of anything better, otherwise I've got an intensive hour or two sprinkling my code with strings!
Andrew
 
Upvote 0

andrewj

Active Member
Licensed User
Longtime User
On second thoughts, it may be time to create a B4A version of the VB program we invented in about 1997 to do this systematically!
Andrew
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…