[Gambas-user] Introspection/Event forwarding feature request

Benoît Minisini g4mba5 at gmail.com
Sat May 23 20:11:05 CEST 2020


Le 23/05/2020 à 20:03, Tobias Boege a écrit :
> 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.
> 

Morever, it works only if debugging information is put inside the 
executable.

-- 
Benoît Minisini


More information about the User mailing list