Task

The goal is to get the source code or file path and line number where a programming object (e.g. module, class, function, method) is defined.




' FB 1.05.0 Win64 (getsource.bas)
 
Sub Proc()
  Print __Function__  & " is defined in " & __Path__ & "\" & __File__ & " at line " & ( __line__ - 1) 
End Sub 
 
Proc()
Sleep