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
-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.
>
>
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
> 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
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
> (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
--
-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
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
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
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
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
11 matches
Mail list logo