[Gambas-user] Raises the event
Ivan Kern
ivan-kern at ...308...
Tue Jul 17 10:12:42 CEST 2012
Hi,
What I need is raising an event in my own component.
If I declare my FUNCTION or SUB as STATIC and try to raise an event from
this function, I get error message
"Cannot raise event in static function." But if that is not STATIC and I try
call it from my application
I get an error message FUNCTION is not static.
Sorry for my English.
Ivan
-----Ursprüngliche Nachricht-----
Von: Fabien Bodard [mailto:gambas.fr at ...626...]
Gesendet: Samstag, 14. Juli 2012 10:27
An: mailing list for gambas users
Betreff: Re: [Gambas-user] Raises the event
2012/7/13 Jussi Lahtinen <jussi.lahtinen at ...626...>
> I don't think Gambas supports static events.
> So you need to remove static from declaration, or use sub instead.
> Why you need myTest() sub to be static?
>
> Jussi
>
> same question ....
>
a component by definition is dynamic. And if you want to use full static
class, you should prefer a module ... no ?
----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will
include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list