[Gambas-user] How to access labels etc from module?

Jussi Lahtinen jussi.lahtinen at ...626...
Sun Mar 8 19:39:32 CET 2009


Thanks!
Exactly what I needed!

Jussi

On Sun, Mar 8, 2009 at 8:08 PM, Werner <wdahn at ...1000...> wrote:
> Jussi Lahtinen wrote:
>> Hi!
>>
>> Might be pretty novice question, but it didn't find answer...
>> What would be the best way to access labels etc. from module?
>> I'm converting vb6 project in to gambas.
>> And the code has lines like this in modules (also a lot more complicated);
>> MainForm.LblStatus.Caption = "OK"
>> But it doesn't work (Unknown symbol 'LblStatus' in class 'MainForm').
>> Is there easier way to access, than make sub for every control in form?
>> Thanks!
>>
>>
>> Jussi
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
>> -Strategies to boost innovation and cut costs with open source participation
>> -Receive a $600 discount off the registration fee with the source code: SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
> My Gambas is a bit rusty because I'm doing other things right now.
> But you might want to try
> Menu: Project-->Properties
>    Properties Dialog Tab: Options--> Form Controls are Public
>       set to Yes
>
> Regards
> Werner
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list