Re: [Gambas-user] Call control from one module

2010-05-13 Thread craf
Ok, Registration ;=) Regards. -- Cristian Abarzúa >And in gambas, please don't use too often underScore to name the >procedure??? they are reserved for two things : >MyObject_EventHandler() >and >_HiddenProperty or _HiddenVariable >At the place you can use UpperCase : >Public Sub ProcAdd

Re: [Gambas-user] Call control from one module

2010-05-13 Thread craf
-Mensaje original- De: Fabián Flores Vadell Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Call control from one module Fecha: Thu, 13 May 2010 12:19:17 -0300 > I had no idea of this utility, would comment on the forum. > >

Re: [Gambas-user] Call control from one module

2010-05-13 Thread Fabien Bodard
And in gambas, please don't use too often underScore to name the procedure??? they are reserved for two things : MyObject_EventHandler() and _HiddenProperty or _HiddenVariable At the place you can use UpperCase : Public Sub ProcAdd () Dim sText As String sText = MMain.GetText() Endif

Re: [Gambas-user] Call control from one module

2010-05-13 Thread Fabián Flores Vadell
> I had no idea of this utility, would comment on the forum. > > Regards > Hi Craf, note than "properties" is a OOP feature. So, if you write your programs according to OOP, that's ok (and I fully agree with the criteria of Jesús), but if you write your programs according to the paradigm modular/s

Re: [Gambas-user] Call control from one module

2010-05-13 Thread EA7DFH
I may be wrong, but generally it is considered a bad practice mixing GUI code with "service" code. It is a matter of encapsulation, and in OOP it is one of the most important feature. Yes, less code not always means easy code..., it's just my opinion and I'm not criticizing. Regards, Jesus l 1

Re: [Gambas-user] Call control from one module

2010-05-13 Thread Jussi Lahtinen
> (I think it is not a good idea to make public controls) Just for interest, why? What is the downside? Maybe it is easier to write not so nicely structured code with public controls, but in this case I may prefer way that creates less code. I think they are both fine... Jussi --

Re: [Gambas-user] Call control from one module

2010-05-12 Thread craf
-Mensaje original- De: EA7DFH Reply-to: mailing list for gambas users Para: mailing list for gambas users Asunto: Re: [Gambas-user] Call control from one module Fecha: Thu, 13 May 2010 00:29:20 +0200 El 13/05/10 00:08, Jussi Lahtinen escribió: > Project properties --> Check

Re: [Gambas-user] Call control from one module

2010-05-12 Thread EA7DFH
El 13/05/10 00:08, Jussi Lahtinen escribió: > Project properties --> Check: Form controls are public. > > Jussi > > > On Thu, May 13, 2010 at 00:45, craf wrote: >> Hi. >> >> I need to call a control that is located on the main form from a module, >> for this I have dealt with the following code

Re: [Gambas-user] Call control from one module

2010-05-12 Thread craf
Thanks ! My fault. By spending some time with Python, and I forget everything. Regards >Project properties --> Check: Form controls are public. >Jussi On Thu, May 13, 2010 at 00:45, craf wrote: > Hi. > > I need to call a control that is located on the main form from a module, > for this I h

Re: [Gambas-user] Call control from one module

2010-05-12 Thread Jussi Lahtinen
Project properties --> Check: Form controls are public. Jussi On Thu, May 13, 2010 at 00:45, craf wrote: > Hi. > > I need to call a control that is located on the main form from a module, > for this I have dealt with the following code: > > 'in module > > public sub proc_add() > > Fmain.control

[Gambas-user] Call control from one module

2010-05-12 Thread craf
Hi. I need to call a control that is located on the main form from a module, for this I have dealt with the following code: 'in module public sub proc_add() Fmain.control.text= "Hello" end sub But this form of call control does not work. Regards