[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: evenment fonction handle


On 8/24/25 4:17 AM, Fabien Bodard wrote:
Hi,

How can I know if a function handle has been set in the parent class ?

I meen ... is it this way ?

if object.class(object.parent(me)).exist(...) ? then

or there is another way. I need to test it to know if I use a default function instead.

Thank you

Object.Parent(me) is going to give you the default event observer "me" is attached to, not its parent (inherited) class.

I think what you need is Object.Class(me).Parent.Exist(...)  ' Note: not tested.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


References:
evenment fonction handleFabien Bodard <gambas.fr@xxxxxxxxx>