Re: [Gambas-user] Raises the event

2012-07-17 Thread Ivan Kern
I thank all of you, I've got it. Ivan -Ursprüngliche Nachricht- Von: Fabien Bodard [mailto:gambas...@gmail.com] Gesendet: Dienstag, 17. Juli 2012 13:41 An: mailing list for gambas users Betreff: Re: [Gambas-user] Raises the event Because yoy are using your component as a module

Re: [Gambas-user] Raises the event

2012-07-17 Thread Fabien Bodard
om my > application I get an error message “FUNCTION... is not static. > > Thank you, Ivan > > -Ursprüngliche Nachricht- > Von: Bruce [mailto:bbr...@paddys-hill.net] > Gesendet: Dienstag, 17. Juli 2012 11:57 > An: mailing list for gambas users > Betreff: Re: [Gam

Re: [Gambas-user] Raises the event

2012-07-17 Thread Ivan Kern
: mailing list for gambas users Betreff: Re: [Gambas-user] Raises the event 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 e

Re: [Gambas-user] Raises the event

2012-07-17 Thread Bruce
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

Re: [Gambas-user] Raises the event

2012-07-17 Thread Ivan Kern
or message “FUNCTION is not static”. Sorry for my English. Ivan -Ursprüngliche Nachricht- Von: Fabien Bodard [mailto:gambas...@gmail.com] 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 >

Re: [Gambas-user] Raises the event

2012-07-14 Thread Fabien Bodard
2012/7/13 Jussi Lahtinen > 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

Re: [Gambas-user] Raises the event

2012-07-13 Thread Jussi Lahtinen
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 On 13 July 2012 09:23, Ivan Kern wrote: > Hi to all, > > I have made my own gambas component in gambas2 under ubuntu 10.04. > > It wor

[Gambas-user] Raises the event

2012-07-12 Thread Ivan Kern
Hi to all, I have made my own gambas component in gambas2 under ubuntu 10.04. It works well till I want raise an event. I always get an error message "Cannot raise event in static function." The code is like this: 'Gambas class file EXPORT STATIC PUBLIC $A AS INTEGER STATIC