On Tue, 2012-07-17 at 10:12 +0200, Ivan Kern wrote:
> 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

Ah! I think I may see something.  Please explain a bit more about what
you mean by "But if that is not STATIC and I try call it from my
application".

In the meantime, here is a couple of source archives for you to study.
I have only implemented the "demo_staticRaise" as a library in
"demo_staticraise2" but maybe it will help.

Bruce

Attachment: demo_staticRaise2-0.0.1.tar.gz
Description: application/compressed-tar

Attachment: demo_staticRaise-0.0.2.tar.gz
Description: application/compressed-tar

------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to