[Gambas-user] Introspection/Event forwarding feature request

Tobias Boege taboege at gmail.com
Sat May 23 20:03:36 CEST 2020


On Sat, 23 May 2020, Peter Bauer wrote:
> Hello,
> I would need a method which gives a reference as a complete name of the
> currently used (event handling)Sub. Is there already a way for a program to
> find out in which Sub the code currently runs ?
> 
> e.g. Public Sub Button1_Click()
> 
> Print Me.Subname should give something like:
> Button1_Click()
> 

There is System.Backtrace which contains such information, but I don't think
that its format has any compatibility guarantees.

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk


More information about the User mailing list