Re: [Gambas-user] Modules

2014-09-15 Thread B Bruen
On Tue, 16 Sep 2014 00:03:22 +0200 Benoît Minisini wrote: > Le 15/09/2014 23:52, John Leake a écrit : > >> > >> Private by default. It's like a class, except everything is static. > >> > > So if I have a module containing some general purpose functions that I > > wish to share across all the form

Re: [Gambas-user] Modules

2014-09-15 Thread Benoît Minisini
Le 15/09/2014 23:52, John Leake a écrit : >> >> Private by default. It's like a class, except everything is static. >> > So if I have a module containing some general purpose functions that I > wish to share across all the forms in a project, can simply declare > these functions as Public within t

Re: [Gambas-user] Modules

2014-09-15 Thread John Leake
> > Private by default. It's like a class, except everything is static. > So if I have a module containing some general purpose functions that I wish to share across all the forms in a project, can simply declare these functions as Public within the module ?

Re: [Gambas-user] Modules

2014-09-15 Thread Benoît Minisini
Le 15/09/2014 21:43, John Leake a écrit : > What scope do Functions/Subs and variables have when defined or declared > within a module ? > Private by default. It's like a class, except everything is static. -- Benoît Minisini -

Re: [Gambas-user] Modules

2014-09-15 Thread John Leake
What scope do Functions/Subs and variables have when defined or declared within a module ? -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control.

Re: [Gambas-user] Modules

2014-09-15 Thread Benoît Minisini
Le 15/09/2014 21:29, John Leake a écrit : >> A module is just a class whose all methods and properties are static. >> It's a thing coming from Visual Basic. >> > Thank you. When and how is an instance instantiated ? > It's static, that means it cannot be instantiated. -- Benoît Minisini ---

Re: [Gambas-user] Modules

2014-09-15 Thread Tobias Boege
On Mon, 15 Sep 2014, John Leake wrote: > Hi All, > > I am really struggling with the Gambas 3 documentation. > > Can anyone tell me where I can find out what constitutes a 'module' ? > See [0]: "A static class is a class whose all members are static (see below). In Gambas, a static class is a

Re: [Gambas-user] Modules

2014-09-15 Thread John Leake
> A module is just a class whose all methods and properties are static. > It's a thing coming from Visual Basic. > Thank you. When and how is an instance instantiated ? -- Want excitement? Manually upgrade your productio

Re: [Gambas-user] Modules

2014-09-15 Thread Benoît Minisini
Le 15/09/2014 21:14, John Leake a écrit : > Hi All, > > I am really struggling with the Gambas 3 documentation. > > Can anyone tell me where I can find out what constitutes a 'module' ? > > Best regards, > John Leake > A module is just a class whose all methods and properties are static. It's a

[Gambas-user] Modules

2014-09-15 Thread John Leake
Hi All, I am really struggling with the Gambas 3 documentation. Can anyone tell me where I can find out what constitutes a 'module' ? Best regards, John Leake -- Want excitement? Manually upgrade your production datab

Re: [Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
O.K. I've discovered that the modules should be added to the sources branch of the project! 2011/6/30, M. Cs. : > Hmmm, I see the examples have no modules. Does it mean that in G3 the > modules are not working yet? > > > 2011/6/30, M. Cs. : >> I've created a module called Paper, and a PUBLIC SUB D

Re: [Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
Hmmm, I see the examples have no modules. Does it mean that in G3 the modules are not working yet? 2011/6/30, M. Cs. : > I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, > and when I try to invoke the module with > > PUBLIC SUB myButton_Click() > Paper.DoPrint > END > > from

[Gambas-user] Modules not recognized

2011-06-30 Thread M. Cs.
I've created a module called Paper, and a PUBLIC SUB DoPrint() on it, and when I try to invoke the module with PUBLIC SUB myButton_Click() Paper.DoPrint END from FMain, I'm getting error "Unknown identifier Paper on FMain..." Men, is this still Gambas??? This was the standard way of handling th

Re: [Gambas-user] Modules cant raise events :-(

2010-01-20 Thread Benoît Minisini
> Hi Benoit, > > Benoît Minisini wrote: > > If CurrentUser, CurrentProject and CurrentSystem are the objects that > > change, > > then they should raise the events, not the module where they are > > declared. Shouldn't they? An event is the way an object tells the world > > it has changed. > > > >

Re: [Gambas-user] Modules cant raise events :-(

2010-01-10 Thread bbb888
Hi Benoit, Benoît Minisini wrote: > > If CurrentUser, CurrentProject and CurrentSystem are the objects that > change, > then they should raise the events, not the module where they are declared. > Shouldn't they? An event is the way an object tells the world it has > changed. > > If you can'

Re: [Gambas-user] Modules cant raise events :-(

2010-01-10 Thread Benoît Minisini
> I have a module called "env" that "holds" three system wide objects > (CurrentUser, CurrentProject, CurrentSystem). Lots of forms access and use > these objects (Login, FMain etc etc). > > I am trying to signal an unknown number of listeners when one of these > objects changes, for example is

[Gambas-user] Modules cant raise events :-(

2010-01-10 Thread bbb888
I have a module called "env" that "holds" three system wide objects (CurrentUser, CurrentProject, CurrentSystem). Lots of forms access and use these objects (Login, FMain etc etc). I am trying to signal an unknown number of listeners when one of these objects changes, for example is the user ch

Re: [Gambas-user] modules

2009-10-25 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Benoît Minisini a écrit : Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY >>> You mean, when loading a module at runtime? >> well, both @ runtime and w

Re: [Gambas-user] modules

2009-10-25 Thread Benoît Minisini
> Benoît Minisini a écrit : > >> Hi list, > >> > >> I wonder if it is possible to create modules dependencies in order to > >> automatically load N modules when you only select one? > >> > >> JY > > > > You mean, when loading a module at runtime? > > well, both @ runtime and when beginning the pro

Re: [Gambas-user] modules

2009-10-24 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit : >> Hi list, >> >> I wonder if it is possible to create modules dependencies in order to >> automatically load N modules when you only select one? >> >> JY >> > > You mean, when loading a module at runtime? well, both @ runtime and when beginning the project when you choo

Re: [Gambas-user] modules

2009-10-24 Thread Benoît Minisini
> Hi list, > > I wonder if it is possible to create modules dependencies in order to > automatically load N modules when you only select one? > > JY > You mean, when loading a module at runtime? -- Benoît Minisini --

[Gambas-user] modules

2009-10-24 Thread Jean-Yves F. Barbier
Hi list, I wonder if it is possible to create modules dependencies in order to automatically load N modules when you only select one? JY -- Praise the Lord and pass the ammunition. -- Stephen Coonts, "The Minotaur"