Get Sub or Function name

Is there a way to retrieve the name of the function, sub, event, method, procedure, etc. a line of code is executed in? What other information is available about the currently executing procedure?

For example…

[code]Sub SaveChanges(jData As JSONItem)
if not UpdateData(jData.ToString) then
msg = “Error updating database” + Chr(10)
msg = msg + "Procedure: " + {ControlContainer.SaveChanges()}

MsgBox msg

end if
End Sub
[/code]

[quote=182839:@Scott Rich]Is there a way to retrieve the name of the function, sub, event, method, procedure, etc. a line of code is executed in? What other information is available about the currently executing procedure?

For example…

[code]Sub SaveChanges(jData As JSONItem)
if not UpdateData(jData.ToString) then
msg = “Error updating database” + Chr(10)
msg = msg + "Procedure: " + {ControlContainer.SaveChanges()}

MsgBox msg

end if
End Sub
[/code][/quote]

http://documentation.xojo.com/index.php/Currentmethodname

Thanx Michel. This is exactly what I was looking for.