iOS Question Function caller

Alex_197

Well-Known Member
Licensed User
Longtime User
Hi all.

Let's say we have a code like this
B4X:
private sub A

  dim abc as string  

  ' Call a function
  abc=dosomething()

end sub

private sub B

  dim cde as string  

  ' Call a function
  cde=dosomething()

end sub

private sub dosomething() as string
  
   dim CallerName as string  
   ' some code here to determin what sub called me
  
   CallerName="I was called by " ' how to find out?

   return CallerName

end sub

Is it possible from the function dosometing() to find out what sub called this function?

Thanks.
 
Top