[Gambas-user] General event handler

Bruce adamnt42 at gmail.com
Sat May 1 01:16:21 CEST 2021

In PL1 there is a condition called "Any$" that makes it possible to 
write a generalised event handler "On_Any$" that is executed for any 
other condition that does not have a specific handler. Thus if there is 
a divide by zero occurrence and there is no "On_DivZero$" handler then 
On_Any$ is executed.

Do we have a way to do the same in Gambas? Like in the startup class 
have a method, say "Application_Any$", that could trap any event raised 
by any object.


More information about the User mailing list