Re: [Gambas-user] Public and Private SUB in modules

2012-12-21 Thread Rolf-Werner Eilert
Am 21.12.2012 11:13, schrieb Tobias Boege: > On Fri, 21 Dec 2012, Rolf-Werner Eilert wrote: >> >> >> Am 20.12.2012 13:20, schrieb Beno?t Minisini: >>> Le 20/12/2012 13:04, Rolf-Werner Eilert a ?crit : The event comes from another object, I understand that, so that's why. Thank you!

Re: [Gambas-user] Public and Private SUB in modules

2012-12-21 Thread Tobias Boege
On Fri, 21 Dec 2012, Rolf-Werner Eilert wrote: > > > Am 20.12.2012 13:20, schrieb Beno?t Minisini: > > Le 20/12/2012 13:04, Rolf-Werner Eilert a ?crit : > >> > >> The event comes from another object, I understand that, so that's why. > >> Thank you! > >> > >> Rolf > >> > > > > To give you more de

Re: [Gambas-user] Public and Private SUB in modules

2012-12-20 Thread Rolf-Werner Eilert
Am 20.12.2012 13:20, schrieb Benoît Minisini: > Le 20/12/2012 13:04, Rolf-Werner Eilert a écrit : >> >> The event comes from another object, I understand that, so that's why. >> Thank you! >> >> Rolf >> > > To give you more details: > > In most languages, public / private / friend... are a mix of

Re: [Gambas-user] Public and Private SUB in modules

2012-12-20 Thread Benoît Minisini
Le 20/12/2012 13:04, Rolf-Werner Eilert a écrit : > > The event comes from another object, I understand that, so that's why. > Thank you! > > Rolf > To give you more details: In most languages, public / private / friend... are a mix of telling which symbols are exported at runtime and some synta

Re: [Gambas-user] Public and Private SUB in modules

2012-12-20 Thread Rolf-Werner Eilert
Am 20.12.2012 11:37, schrieb Benoît Minisini: > Le 20/12/2012 11:27, Rolf-Werner Eilert a écrit : >> Hi, >> >> just a question to understand this phenomenon better: >> >> Why do event-SUBs have to be Public? It seems to me as if they don't run >> if I make them Private. >> >> For example, I have

Re: [Gambas-user] Public and Private SUB in modules

2012-12-20 Thread Rolf-Werner Eilert
Errr - nope, doesn't run here: Tried to change myPrinter_Draw() into _myPrinter_Draw(), and this is dysfunctional :-) Never mind - I can live with it... Rolf Am 20.12.2012 11:55, schrieb Fabien Bodard: > It can be masked by adding an underscore at the beginning of the event name > Le 20 déc.

Re: [Gambas-user] Public and Private SUB in modules

2012-12-20 Thread Fabien Bodard
It can be masked by adding an underscore at the beginning of the event name Le 20 déc. 2012 11:38, "Benoît Minisini" a écrit : > Le 20/12/2012 11:27, Rolf-Werner Eilert a écrit : > > Hi, > > > > just a question to understand this phenomenon better: > > > > Why do event-SUBs have to be Public? It

Re: [Gambas-user] Public and Private SUB in modules

2012-12-20 Thread Benoît Minisini
Le 20/12/2012 11:27, Rolf-Werner Eilert a écrit : > Hi, > > just a question to understand this phenomenon better: > > Why do event-SUBs have to be Public? It seems to me as if they don't run > if I make them Private. > > For example, I have a module which handles an event-driven thing (like > print

[Gambas-user] Public and Private SUB in modules

2012-12-20 Thread Rolf-Werner Eilert
Hi, just a question to understand this phenomenon better: Why do event-SUBs have to be Public? It seems to me as if they don't run if I make them Private. For example, I have a module which handles an event-driven thing (like printing). I want to have all SUBs and Functions within this module